keys - nodef/extra-map GitHub Wiki
List all keys.
Similar: randomKey, keys, has.
Similar: keys, values, entries.
function keys(x)
// x: a map
const map = require('extra-map');
var x = new Map(['a', 1], ['b', 2], ['c', 3](/nodef/extra-map/wiki/'a',-1],-['b',-2],-['c',-3));
[...map.keys(x)];
// → [ 'a', 'b', 'c' ]
References