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' } ]
- bluebird: Full featured Promises/A+ implementation with exceptionally good performance
- handle-arguments: Handles given Arguments object - return separatly last argument (commonly callback) and other arguments as… more
- handle-callback: Initial step for creating hybrid APIs, used by
hybridify
. Handle callback in promise - give… more - hybridify: Building hybrid APIs. You can use both callback and promise in same time. Like… more
- Optimization killers by @petkaantonov
Pull 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.