node package manager


the new operator as a function; compliant with es5.1

newnew is the new new.

newnew is a function that replaces the new operator.

newnew inherits the first-class nature of functions, allowing you to do a couple of cool things that you never could with new:

var objects = [Object, Array, Function].map(newnew)
var o = newnew.apply(MyCtor, args)

It's as simple as an npm:

npm install newnew