0.0.1 • Published 4 years ago

0this v0.0.1

Weekly downloads
49
License
UNLICENSED
Repository
github
Last release
4 years ago

0this

Transformed arrow functions that accept this biding as their first argument.

example

const zt = require("0this");

const func = zt((thiz, arg1, arg2) => {
  console.log(thiz, arg1, arg2);
});

const thiz = {
  prop: "prop",
};

func.apply(thiz, [1, 2]);

outputs: { prop: 'prop' } 1 2

0.0.1

4 years ago

0.0.0

4 years ago