'shift()' Syntax, Parameters and Note : shift « Javascript Methods « JavaScript Reference
- JavaScript Reference
- Javascript Methods
- shift
'shift()' Syntax, Parameters and Note
Note:
Removes the first element in an array.
Returns the element being removed.
Syntax:
arrayName.shift()
Related examples in the same category