We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Adds values to the start. 🏃 📼 📦 🌔 📒
Alternatives: unshift, unshift$. Similar: push, pop, shift, unshift.
array.unshift(x, ...vs); // x: an array // vs: values to add
const array = require("extra-array"); var x = [3, 4]; array.unshift(x, 2); // [ 2, 3, 4 ] array.unshift(x, 1, 2); // [ 1, 2, 3, 4 ]