Typescript Array Get First Element From Arraylist To Array