0
const arr = [['k', 'v'], ['']]
const innerArr = ['']
d = arr.findIndex(v => v === innerArr ) 
console.log(d) // returns -1

Why this inner array is not found? I know JSON.stringify solves this issue.

0 Answers0