conkat
Merge arrays, objects, maps, and sets
Install
$ npm i -S conkat
Usage
Merge Arrays
; const a = 1 2 3;const b = 4 5 6; console; // -> [1, 2, 3, 4, 5, 6]
Merge Objects
const a = first_name: 'Vu' const b = last_name: 'Tran' console; // -> { first_name: 'Vu', last_name: 'Vu' }
Merge ES2015 Sets
const a = ;a;a; const b = ;b;b; console; // -> Set { 'foo', 'bar', 'baz', 'qux' }
Merge ES2015 Maps
const a = ;a;a; const b = ;a; console; // -> Map { 'one' => 1, 'two' => 2, 'three' => 3 }
License
MIT © Vu Tran