Skip to content
Subhajit Sahu edited this page Feb 4, 2021 · 15 revisions

Lists all keys. 🏃 📼 📦 🌔 📒

Similar: key, keys, isKey.

entries.keys(x);
// x: entries
const entries = require("extra-entries");

var x = [["a", 1], ["b", 2], ["c", 3]];
[...entries.keys(x)];
// [ "a", "b", "c" ]

references

Clone this wiki locally