UNPKG

grid-neighbors-1d

Version:

Get the 8 closest neighbors of a cell in a 2d grid when flattened to a 1d array

6 lines (3 loc) 87 B
# Project Authors ## Developers * P. Hughes <github@phugh.es> (https://www.phugh.es)