Universal Wrapper Object System for ECMAScript 5 and beyond
// for conveniencevar _ = ObjectWrap;// singleton method!* 1; // 1764;42; // TypeError: Object 42 has no method 'square'// class method without changing Number_Numberprototype;// see your log!;// TypeError: Object 42 has no method 'times'42;
As seen above,
Object.Wrap() wraps objects as transparently and painlessly as possible:
So you can extend built-in methods without tainting built-in prototypes.
See wrap.md for details!