UNPKG

matrix-map

Version:

A class object for to aid in the creation of 2D grid games.

11 lines (8 loc) 257 B
const hasEquivalentNeighbors = function(i){ let hasEquivalentNeighbors = true; if (this.getEquivalentNeighbors(i).size === 0) { hasEquivalentNeighbors = false } return hasEquivalentNeighbors } export default hasEquivalentNeighbors