I have a dynamic array var arr = ["key1","key2","key3"]
i want to filter an array of objects with this array,for example,
var obj = [{"key1":{"key2":{"key3":5}}},{"key1":{"key2":{"key3":7}}},{"key1":{"key2":{"key3":8}}}]
with "key3" equals to 5. How can I achieve this with vanilla javascript?