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 = ["A", "B", "C"]; [...iterable.entries(x)]; // [ [ 0, "A" ], [ 1, "B" ], [ 2, "C" ] ]