This package has been deprecated

Author message:

No longer supported

newapply

0.0.2 • Public • Published

newapply

Construct class by applying provided arguments. Helps make class new agnostic.

Example:

var newapply = require("newapply");

var Dog = function( name ){
    if( !(this instanceof Dog) ){ return newapply(Dog, arguments); }

    this.name = name;

    return this;
};

Readme

Keywords

none

Package Sidebar

Install

npm i newapply

Weekly Downloads

0

Version

0.0.2

License

BSD

Last publish

Collaborators

  • glukki