Typescript Change Index In Arrays