Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

@extra-map/concat

1.1.1 • Public • Published

Concatenate maps, like Array.concat().

const concatOf = require('@extra-map/concat');
// concatOf(<map>...)
// -> <concatenated map>
 
concatOf(new Map([['a', 'a']]), new Map());
// Map {'a'=>'a'}
concatOf(new Map([['a', 1], ['b', 2]]), new Map([['c', 3], ['d', 4]]));
// Map {'a'=>1, 'b'=>2, 'c'=>3, 'd'=>4}

extra-map

install

npm i @extra-map/concat

Downloadsweekly downloads

0

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability