-
Notifications
You must be signed in to change notification settings - Fork 0
unionKeys
Subhajit Sahu edited this page Dec 22, 2022
·
14 revisions
Obtain keys present in any entries.
Similar: unionKeys, intersectionKeys.
function unionKeys(...xs)
// xs: all entries
const entries = require('extra-entries');
var x = [["a", 1], ["b", 2], ["c", 3], ["d", 4]];
var y = [["b", 20], ["c", 30], ["e", 50]];
entries.unionKeys(x, y);
// → Set(5) { "a", "b", "c", "d", "e" }