putty
General-purpose re-usable functional utilities.
Strongly recommended to be used along with lodash
Usage
First install the putty
as a dependency:
npm install --save putty
API
arrgs([args])
Returns an array containing the specified arguments
args
- Type: Any
- Optional
The arguments that need to be returned in the array
Example
function sum() {
var nums = putty.arrgs(arguments);
return nums.reduce(function (result, num) {
return result + num;
}, 0);
}