Export (0) Print
Expand All

shift Method

Removes the first element from an array and returns that element.

function shift() : Object

Remarks

The shift method removes the first element from an array and returns it.

Requirements

Version 5.5

See Also

unshift Method

Applies To: Array Object

Show:
© 2014 Microsoft