type GridArray = { [key: number]: T }