https://github.com/bcherny/concat-maps
Efficiently concatenate ES6 Maps
https://github.com/bcherny/concat-maps
combine concatenation es6 map merge
Last synced: 8 months ago
JSON representation
Efficiently concatenate ES6 Maps
- Host: GitHub
- URL: https://github.com/bcherny/concat-maps
- Owner: bcherny
- License: mit
- Created: 2017-01-10T20:03:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-03T21:33:57.000Z (over 8 years ago)
- Last Synced: 2025-02-02T15:36:13.165Z (8 months ago)
- Topics: combine, concatenation, es6, map, merge
- Language: TypeScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# concat-maps [](https://circleci.com/gh/bcherny/concat-maps) [](https://www.npmjs.com/package/concat-maps) [](https://opensource.org/licenses/MIT)
> Efficiently concatenate ES6 Maps
## Installation
```sh
npm install concat-maps --save
```## Usage
```js
import { concat } from 'concat-maps'const a = new Map
a.set('a', 1)const b = new Map
b.set('b', 2)const c = concat(a, b)
// Map {
// "a" => 1,
// "b" => 2
// }
```## Tests
```sh
npm test
```## License
MIT