babel-autobind
Version:
it binds methods to its class prototype + Compatible with stub/spy used on unit-test frameworks (Sinon.Js, enzyme,...so on) + Can be integrated with 3rd party decorators (like @autobind decorator)
4 lines (3 loc) • 21 B
Plain Text