Creates a GridArray1d instance given the dimensions of the grid. Use createArray if you just want to create an array sized for a grid.

Behind the scenes, it runs:

const arr = createArray(initialValue, rows, cols);
return wrapMutable(arr, cols);
  • Type Parameters

    • T

    Parameters

    • initialValue: T
    • rowsOrGrid: number | Grid
    • Optionalcolumns: number

    Returns GridArray1d<T>