UNPKG

grid-neighbors-1d

Version:

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

17 lines (10 loc) 927 B
# Support ## How to file issues and get help This project uses [GitHub issues][gh-issue] to [track bugs][gh-bug] and [feature requests][gh-feature]. Please search the existing issues before filing new issues to avoid duplicates. For new topics, file your bug or feature request as a new issue. For help and questions about using this project, please look at the [docs][docs] and our [Contributor's Guide][contributor]. ## Support Policy Support is limited to the resources listed above. [gh-issue]: https://github.com/phughesmcr/grid-neighbors-1d/issues/new/choose [gh-bug]: https://github.com/phughesmcr/grid-neighbors-1d/issues/new?assignees=&labels=Issue-Bug&template=bug_report.md&title= [gh-feature]: https://github.com/phughesmcr/grid-neighbors-1d/issues/new?assignees=&labels=Issue-Feature&template=Feature_Request.md&title= [contributor]: https://github.com/phughesmcr/grid-neighbors-1d/blob/main/CONTRIBUTING.md