auto-bind-extend
a simple class that can be used to put your function context troubles to rest. Based on auto-bind
example
const BaseAutoBind = ; { super; thisname = 'Cool'; } { return thisname; } let cool = ; // No matter where this function may travel, it'll stay coollet coolSayFn = coolsay;console; // Cool!
dev
npm test
npm run coverage