Typescript Change Index In Arraylist