I am trying to find if an array of arrays includes a value. Is it possible to do this without a for loop?
The below always returns false.
const testArr = [
[0,0,0],
[0,1,0],
[0,3,0]
]
console.log(testArr.includes(3))
I am trying to find if an array of arrays includes a value. Is it possible to do this without a for loop?
The below always returns false.
const testArr = [
[0,0,0],
[0,1,0],
[0,3,0]
]
console.log(testArr.includes(3))