We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Removes first value.
Alternatives: default, update.
array.shift(x); // x: an array // --> [value, array]
const array = require('extra-array'); array.shift([1, 2, 3]); // [1, [2, 3]] array.shift([1, 2, 3, 4]); // [1, [2, 3, 4]]
There was an error while loading. Please reload this page.