This documentation is archived and is not being maintained.

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: