Typescript Array Change Item Index