thispop

2.0.1 • Public • Published

thispop

I populate your this object :)

var thispop = require('thispop');
 
function person(fname, lname) {
    thispop(this, person, arguments);
}
 
var me = new person("Foo", "Bar");
console.log(me);
 
/*
    {fname: "Foo", lname: "Bar"}
*/

Package Sidebar

Install

npm i thispop

Weekly Downloads

1

Version

2.0.1

License

MIT

Last publish

Collaborators

  • faizhalde