0.0.2 • Published 10 years ago

newapply v0.0.2

Weekly downloads
-
License
BSD
Repository
-
Last release
10 years ago

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

10 years ago

0.0.1

10 years ago