Typescript Add Elements To Numpy Array Slicing