Typescript Array Shift Method Jstor