Lists all index-value pairs.
This is part of package extra-array.
This is browserified, minified version of @extra-array/entries.
It is exported as global variable array_entries.
CDN: unpkg, jsDelivr.
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" ] ]