We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Lists all index-value pairs. 🏃 📼 📦 🌔
Similar: keys, values, entries.
iterable.entries(x); // x: an iterable
const iterable = require('extra-iterable'); var x = [1, 2, 3]; [...iterable.entries(x)]; // [ [ 0, 1 ], [ 1, 2 ], [ 2, 3 ] ]