rest-param
v1.0.1
Published
Returns a function with an appended rest param
Downloads
4
Readme
rest-param
Returns a function with an appended rest param
Install
$ npm install --save rest-param
Usage
var restParam = require('rest-param');
restParam(function(a, b, rest) {
console.log(a); // 1
console.log(b); // 2
console.log(rest); // [3, 4]
})(1, 2, 3, 4);
API
restParam(fn)
fn
Required
Type: function
License
MIT © stoeffel