Skip to content

unionKeys

Subhajit Sahu edited this page Dec 28, 2022 · 13 revisions

Obtain keys present in any ilists.

Similar: unionKeys, intersectionKeys.


function unionKeys(...xs)
// xs: all ilists
const xilists = require('extra-ilists');

var x = [['a', 'b', 'c', 'd'], [1, 2, 3, 4]];
var y = [['b', 'c', 'e'], [20, 30, 50]];
xilists.unionKeys(x, y);
// → Set(5) { 'a', 'b', 'c', 'd', 'e' }


References

Clone this wiki locally