-
Notifications
You must be signed in to change notification settings - Fork 0
unionKeys
Subhajit Sahu edited this page Feb 4, 2021
·
14 revisions
Gives keys present in any entries. 📦 😺 🏃 📼 🌔 📜 📰 📘
Similar: unionKeys, intersectionKeys.
entries.unionKeys(...xs);
// xs: n 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" }