newnew

0.0.1 • Public • Published

newnew

newnew is the new new.

What?

newnew is a function that replaces the new operator.

WHy??

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

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

Getting

It's as simple as an npm:

npm install newnew

/newnew/

    Package Sidebar

    Install

    npm i newnew

    Weekly Downloads

    0

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • hughfdjackson