Array.shift
shift — Removes the first element off an array and returns it.
Description
Array.shift()
Return values
mixed. The value that was removed.
Examples
Example #1 – shift example
shift — Removes the first element off an array and returns it.
Array.shift()
mixed. The value that was removed.