[Collectable.js] Immutable Sorted Map
npm install @collectable/sorted-mapbash
via NPM
npm install @collectable/sorted-map
or Yarn
yarn add @collectable/sorted-map
`
If you intend to use other data structures as well, install the main collectable package instead. It takes a dependency on each of these data structures, and so they will become available implicitly, after installation.
`bash
via NPM
npm install collectable
or Yarn
yarn add collectable
`
TypeScript type definitions are built in.
Usage
Import and use the functions you need:
`js
import { fromObject, unwrap } from '@collectable/sorted-map';
const map = fromObject({ foo: 'bar' }); // => SortedMap<{ foo: 'bar' }>
const obj = unwrap(map); // => { foo: 'bar' }
``