Typescript Array Shift Method Jsonline