Typescript Insert Element Into Array At Index