MixedArgs
This is a simple tool for creating function that accepts multiple combination of arguments. This can be used in NodeJS or browser.
Installation
NodeJS:
$ npm install mixedargs --save
Browser:
$ bower install mixedargs --save
Usage
//In node onlyvar mixedargs = ; var { var args = ; if args //Message, ErrorCode else if args //Message, ErrorType }
And async mode
var { var args = ; args; args; }