I would like to simplify and optimize this function which finds me the neighbors of a cell thanks to cartesian coordinates of a cell Id const getNeighborsCellId = cellId => { const neighbors = [] const {x, y} = getCoordinatesFromCellId(cellId) // LOL -> const isStaggered = y % 2 if (isStaggered){ neighbors.push(getCellIdFromCoordinates(x, y – 1))Read more