We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Drops given number of values from array. 🏃 📼 📦 🌔 📒
Alternatives: drop, dropWhile. Similar: take, drop.
array.drop(x, [n]); // x: an array // n: number of values
const array = require('extra-array'); var x = [1, 2, 3, 4, 5]; array.drop(x, 2); // [ 3, 4, 5 ] array.drop(x, 3); // [ 4, 5 ]