var coords = [ [0,0],[5,0],[0,5],[5,5],[8,5],[8,0],[40,5],[5,54],[6,7],[40,0],[8,54] ] console.log(coords.includes([0,0]))
The result here is fa