concat-maps
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

concat-maps Build Status NPM MIT

Efficiently concatenate ES6 Maps

Installation

npm install concat-maps --save

Usage

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

npm test

License

MIT

Package Sidebar

Install

npm i concat-maps

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • bcherny