There was an error while loading. Please reload this page.
Removes first value.
Similar: [push], [pop], [shift], [unshift].
xiterable.shift(x); // x: an iterable
const xiterable = require('extra-iterable'); var x = [1, 2, 3]; [...xiterable.shift(x)]; // → [2, 3] var x = [1, 2, 3, 4]; [...xiterable.shift(x)]; // → [2, 3, 4]