Goal is to see if the the keys in a dictionary are in an array in Javascript.
What would be the best approach for this problem
var fruit_dict = { "apple": 11, "orange": 7, "pineapple": 2, "mango": 12 };
var fruit_list1 = ["apple", "pear", "cherry" "strawberry"];
var fruit_list2 = ["grape", "watermelon", "banana", "blackberry", "blueberry"];
desired output
fruit_list1.includes(fruit_dict.keys())
true
fruit_list2.includes(fruit_dict.keys())
false