This line could be simplified to `tempPositionArray[block.id] = {page: pageIndex, block: blockIndex};`