$ cnpm install manage-arguments
Prevents arguments leakage - managing arguments. See Optimization killers by @petkaantonov.
npm i manage-arguments --save
npm test
For more use-cases see the tests
var manageArguments = require('manage-arguments')
function fixture () {
return manageArguments(arguments)
}
console.log(fixture(1, 2, 3, {foo: 'bar'}))
//=> [ 1, 2, 3, { foo: 'bar' } ]
hybridify. Handle callback in promise - give… morePull requests and stars are always welcome. For bugs and feature requests, please create an issue. But before doing anything, please read the CONTRIBUTING.md guidelines.
Copyright 2013 - present © cnpmjs.org | Home |