Returns a GridCellAccessor to get values from array based on cell ({x,y}) coordinates.

const arr = [
1,2,3,
4,5,6
]
const a = access(arr, 3);
a({x:0,y:0}); // 1
a({x:2, y:2}); // 6