not sure what you mean.. test number 5 returns an empty array… my code doesn’t recognize the keys for that particular test for some reason..only the values
let filterRes = arr.filter(obj => Object.keys(obj).join("").includes(Object.keys(src).join("")) && Object.values(obj).join("").includes(Object.values(src).join("")))
This long line of code compares 2 expressions which evaluate into values when the code is run. When the code is running, you’d like to see exactly what two values are being compared.
Can you use console.log() within your filter function to send those values to the log so you can see them?
What do those values represent? Maybe you can use something more descriptive like:
console.log("First value is ", Object.keys(obj)
.join("")
.includes(Object.keys(src)
.join(""))
console.log("Second value is ", Object.values(obj).join("").includes(Object.values(src).join("")))