Grid.fromArray() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
array
{any[]}
No
default?
{any}
Yes

Returns

Not applicable.

Description

Replace this Grid with one that has the size and values of the specified one-dimensional or two-dimensional array. Since arrays can have columns of varying sizes and represent no value in some Grid cells, a default value will be used in such cases.

⚠️ **GitHub.com Fallback** ⚠️