shift
can.List.prototype.shift
Remove en element from the front of a list.
list.shift()
shift removes an element from the beginning of a List.
Returns
{*}
the element just shifted off the List, or undefined if the List is empty
shiftis the opposite action fromunshift:Events
popcauses change, remove, and length events to be fired if the List is not empty when it is called.See also
shifthas a counterpart in unshift, or you may be looking for push and its counterpart pop.