Shift
methodsRemoves the first item from an ObvservableArray and returns that item. An equivalent of Array.prototype.shift.
The
shiftmethod raises thechangeevent. Theactionfield of the event argument is set to"remove". Theitemsfield of the event argument is an array that contains the removed item.
Returns:Object
—The item which was removed.