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.
Gets part of an iterable. 🏃 📼 📦 🌔
iterable.slice(x, [i], [I]); // x: an iterable // i: start index (0) // I: end index (end)
const iterable = require('extra-iterable'); var x = [1, 2, 3, 4, 5]; [...iterable.slice(x, 2)]; // [3, 4, 5] [...iterable.slice(x, 2, 4)]; // [3, 4]