Miss any of our Open RFC calls?Watch the recordings here! »

@extra-set/concat-update

2.2.3 • Public • Published

Appends values from sets. 🏃 📼 📦 🌔 📒

Alternatives: concat, concat$.
This is part of package extra-set.

set.concat$(x, ...ys);
// x:  a set (updated)
// ys: other sets
// --> x
const set = require('extra-set');
 
var x = new Set([1, 2]);
var y = new Set([3, 4]);
set.concat$(x, y);
// Set(4) { 1, 2, 3, 4 }
 
x;
// Set(4) { 1, 2, 3, 4 }
 
var x = new Set([1, 2]);
var z = new Set([40, 50]);
set.concat$(x, y, z);
// Set(6) { 1, 2, 3, 4, 40, 50 }

references

Install

npm i @extra-set/concat-update

DownloadsWeekly Downloads

0

Version

2.2.3

License

MIT

Unpacked Size

3.73 kB

Total Files

9

Last publish

Collaborators

  • avatar