UNPKG

@nichathan-gaming/map-generator

Version:

Creates and generates a 2 dimensional array with various path generation functions.

11 lines (9 loc) 257 B
import { assertTuple } from "@nichathan-gaming/assertions"; /** * Asserts that the given index is an index * @param {*} index The value to assert */ const assertIndex = index => { assertTuple(index, [0, 0]); }; export default assertIndex;