Skip to content
Subhajit Sahu edited this page Dec 28, 2022 · 15 revisions

List all keys.

Similar: randomKey, keys, has.


function keys(x)
// x: ilists
const xilists = require('extra-ilists');

var x = [['a', 'b', 'c'], [1, 2, 3]];
[...xilists.keys(x)];
// → [ 'a', 'b', 'c' ]


References

Clone this wiki locally