extendArguments.js
Why?
Because I can. Just a proof of concept.
How to install?
npm install extend-arguments
How can I use this?
Basic usage
var extendArguments = ;; ; { arguments;}'a''b' 'c'// logs 'a', 'b', 'c' 0: 1 length: 1;// TypeError: (intermediate value).forEach is not a function Objectprototype { throw 'Just testing.';} 0: 1 length: 1; // Error: Just testing { arguments;}'a''b' 'c' // logs 'a', 'b', 'c'
Extend by object
Extend by literal
;
Extend by Array methods
var methodsFromArray = {};Object; ;
TODO:
ArgumentsPrototype object
ArgumentsPrototypefoo = 'bar'; { return argumentsfoo;}; // bar
Requires ES6 Proxies.
Compatibility:
Tested:
- Firefox 29
- Chromium 34
- Node.js 0.10.25
Should work:
- IE 9+
- Firefox 4+
- Chrome 5+