Typescript Array Shift Method Pandasama