Wraps array for grid access.
Mutable, meaning that array gets modified if set function is used.
constg = wrapMutable(myArray, 5); // 5 columns wide g.get({x:1,y:2}); // Get value at cell position g.set(10, {x:1,y:2}); // Set value at cell position g.array; // Get reference to original passed-in array
Wraps
array
for grid access. Mutable, meaning thatarray
gets modified ifset
function is used.Use wrap for an immutable version.