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 values of iterable, from right. 🏃 📼 📦 🌔 📒
Alternatives: drop, dropWhile. Similar: take, drop.
iterable.dropRight(x, [n]); // x: an iterable // n: number of values (1)
const iterable = require('extra-iterable'); var x = [1, 2, 3, 4, 5]; [...iterable.drop(x, 2)]; // [ 3, 4, 5 ] [...iterable.drop(x, 3)]; // [ 4, 5 ]