@stephenbunch/bind

0.1.1 • Public • Published
import bind from '@stephenbunch/bind';

class Foo {
  @bind bar() {
    return this;
  }
}

var foo = new Foo();
expect( foo.bar.call( undefined ) ).to.equal( foo );

Readme

Keywords

none

Package Sidebar

Install

npm i @stephenbunch/bind

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • stephenbunch