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;
};

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i newapply

      Weekly Downloads

      1

      Version

      0.0.2

      License

      BSD

      Last publish

      Collaborators

      • glukki