@bemoje/args-to-array
Takes an arguments-object and returns its values in an array.
Version
Travis CI
Dependencies
Stats
Donate
Installation
npm install @bemoje/args-to-array
npm install --save @bemoje/args-to-array
npm install --save-dev @bemoje/args-to-array
Usage
import argsToArray from '@bemoje/args-to-array'
argsToArray(1)
argsToArray(1, 's')
function argue() {
return argsToArray(arguments)
}
argue(1, 2, 3)
Tests
Uses Jest to test module functionality. Run tests to get coverage details.
npm run test
API
argsToArray
Takes an arguments-object and returns its values in an array.
Parameters
args
arguments the arguments-object
Returns
Array