We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Removes first value. 🏃 📼 📦 🌔 📒
Similar: push, pop, shift, unshift.
iterable.shift(x); // x: an iterable
const iterable = require('extra-iterable'); var x = [1, 2, 3]; [...iterable.shift(x)]; // [ 2, 3 ] var x = [1, 2, 3, 4]; [...iterable.shift(x)]; // [ 2, 3, 4 ]