Typescript Array Shift Method Jstor Subscription