Typescript Update Array Element Spacing