UNPKG

gamekit-utils

Version:

Minimal, fast and useful utilities for randomness, array manipulation and math — built for games, UI logic and generative design.

6 lines (5 loc) 156 B
export declare function getNeighbors<T>(row: number, col: number, grid: T[][], diagonals?: boolean): { row: number; col: number; value: T; }[];