/mapmaker

Make Maps

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

mapmaker - make Maps

mapmaker gives you a nicer interface for making Maps, so you can pass a plain object instead of the arrays of 2 the default implementation accepts.

Using

// default implementation
new Map([['key', 'val'], ['greeting', 'hi']])

// mapmaker
mapmaker({key: 'val', greeting: 'hi'})