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 1D or 2D 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** ⚠️