3 ms·
It requires use of Babel, but you might find the function bind operator an interesting alternative to .bind(). https://babeljs.io/docs/plugins/transform-functi
by crooked-v 8y ago
It requires use of Babel, but you might find the function bind operator an interesting alternative to .bind().
https://babeljs.io/docs/plugins/transform-function-bind/ https://babeljs.io/docs/plugins/transform-function-bind/
- chatmasta 8y agoThat’s very cool! But I’d be hesitant to introduce something non-standard into the codebase. Sure the toolchain can handle it but I’d be worried other devs won’t immediately recognize the syntax.