We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Gets values from left. 🏃 📼 📦 🌔 📒
Similar: left, middle, right.
iterable.left(x, [n]); // x: an iterable // n: number of values (1)
const iterable = require('extra-iterable'); var x = [1, 2, 3]; [...iterable.left(x, 1)]; // [ 1 ] [...iterable.left(x, 2)]; // [ 1, 2 ]