0.1.4 • Published 6 years ago
set-concat v0.1.4
set-concat
NOTE: set-concat was renamed to @extra-set/concat.
Merge two or more sets, like Array.concat().
const concat = require('set-concat');
// concat(<set>...)
concat(new Set('row'), new Set('bow'));
// Set {'r', 'o', 'w', 'b'}
concat(new Set('column'), new Set('golem'));
// Set {'c', 'o', 'l', 'u', 'm', 'n', 'g', 'e'}
concat(new Set().add(76));
// Set {76}