grid-neighbors-1d (npm): Get the 8 closest neighbors of a cell in a 2d grid when flattened to a 1d array
Keywords: array|2d|1d|matrix|grid|neighbour|neighbor|neighbours|neighbors|compass|direction|game-of-life