0.0.3 • Published 9 years ago

@nathanfaucett/create_pool v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

createPool

creates a pooler function for a Constructors

var createPool = reqiure("@nathanfaucett/create_pool");

function Vector(x, y) {
    this.x = x;
    this.y = y;
}

var createVector = createPool(Vector),
    vec = createVector(10, 5); // Vector {x: 10, y: 5}