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.
array.entries(x); // x: an array
const array = require('extra-array'); var x = ['A', 'B', 'C']; [...array.entries(x)]; // [[0, 'A'], [1, 'B'], [2, 'C']]
There was an error while loading. Please reload this page.