0this

0.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i 0this

    Weekly Downloads

    20

    Version

    0.0.1

    License

    UNLICENSED

    Unpacked Size

    1.36 kB

    Total Files

    3

    Last publish

    Collaborators

    • rubixibuc