Typescript Update Array Value