Licence
MIT
Version
0.1.0
Deps
0
Vulns
0
Weekly
0
fn-map
ES6 function map. Typed map using string as key and function as value.
Example
let FunctionMap = require('fn-map');
let map = FunctionMap
.create()
.use('foo', () => 'foo')
.use('bar', () => 'bar');
map.get('foo')(); // foo
map.get('bar')(); // bar
Install
npm install fn-map --save
License
MIT