import bind from '@stephenbunch/bind';
class Foo {
@bind bar() {
return this;
}
}
var foo = new Foo();
expect( foo.bar.call( undefined ) ).to.equal( foo );
@stephenbunch/bind
0.1.1 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i @stephenbunch/bind
Repository
Homepage
Weekly Downloads
1
Version
0.1.1
License
MIT