Variadic
Return a function that accepts a variable number of arguments as the last parameter.
Installation
npm install variadic --save
Usage
var variadic = ; var fn = ; ; //=> []; //=> ['a'] //=> ['a', 'b']; var fn = ; ; //=> { a: undefined, b: undefined, args: [] }; //=> { a: 'a', b: undefined, args: [] }; //=> { a: 'a', b: 'b', args: ['c', 'd', 'e'] }
License
MIT