Fundot Hold
Creates functions that only execute if the set number of arguments are given for the functional library Fundot
Example
var hold =var giveMeThree =var giveMeOne =
$ node example/hold.js
{ one: 3, two: 3, three: 3 }
{ one: 4, two: 4, three: 5 }
Methods
var hold =
hold(number, function)
Returns a function that will not call the passed function until the number of arguments given matches the original number required.
Install
With npm do:
npm install fundot-hold
License
MIT