Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

newnew

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newnew

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

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 30 Oct 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts