argtoob
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -25,3 +25,3 @@ { | ||
}, | ||
"version": "1.0.1" | ||
"version": "1.0.2" | ||
} |
@@ -16,5 +16,6 @@ # argtoob | ||
```javascript | ||
const t = require('argtoob') | ||
const targs = require('argtoob') | ||
const toObj = t('a', 'b', 'c') // returns a function | ||
const toObj = targs('a', 'b', 'c') // returns a function | ||
toObj(1, 2, 3) // returns {a: 1, b: 2, c: 3} | ||
@@ -29,2 +30,5 @@ | ||
```javascript | ||
const _ = require('lodash') | ||
const targs = require('argtoob') | ||
_.map({a: 1, b: 2, c: 3}, targs('value', 'key')) | ||
@@ -44,2 +48,4 @@ | ||
```javascript | ||
const Rx = require('rx') | ||
const targs = require('argtoob') | ||
const resize = Rx.Observable.fromEvent(window, 'resize') | ||
@@ -46,0 +52,0 @@ const scroll = Rx.Observable.fromEvent(window, 'scroll') |
2676
59