args-to-array
v1.0.2
Published
Convert arguments object to an array
Downloads
3
Readme
args-to-array
Coverts a javascript arguments object into an array
Install
$ npm install --save args-to-array
Usage
var argsToArray = require('args-to-array')
function add (1, 2) {
args = argsToArray(arguments)
// => [1, 2]
...
}
API
argsToArray(arguments)
-> array
arguments
Required
Type: object
The javascript arguments object