How could I check if a table (as array) contains all the keys of another table?
Something like array_diff_key in PHP:
https://www.php.net/manual/en/function.array-diff-key.php
This function should return, for example, ["firstLevel"]["e"] because this element doesn't exist in tblTwo:
tblOne = {
["firstLevel"] = {
["a"] = "something",
["b"] = "something",
["c"] = "something",
["subLevel"] = {
["d"] = "something",
["e"] = "something",
}
}
tblTwo = {
["firstLevel"] = {
["a"] = "something",
["b"] = "something",
["c"] = "something",
["subLevel"] = {
["d"] = "something",
}
}