Skip to content

oelin/invert-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

invert-map

Invert JavaScript maps πŸ”„.

API

Create a map.

> const map = new Map();
> map.set('foo', 'bar')
> map.set('hello', 'world')

Invert it.

> const invert = require('invert-map')
> invert(map)

Map { bar => foo, world => hello }

Releases

No releases published

Packages

No packages published