0.0.1 • Published 5 years ago
thingorthings v0.0.1
ThingOrThings
Merges gets and multigets to make life simpler.
Installation
$ npm install thingorthings
Examples
var thingorthings = require('thingorthings');
var times2 = thingorthings((things) => things.map(thing => thing * 2))
res = times2(1);
// 2
res = times2([ 1, 2, 3 ]);
// { 1: 2, 2: 4, 3: 6 }
0.0.1
5 years ago