2 ms·
Try the following without fat-arrow syntax off of an object { foo: (a,b) => doFoo(this, a, b, 'fixed-value') } I find the fat-arrow syntax allow
by tracker1 11y ago
Try the following without fat-arrow syntax off of an object
{
foo: (a,b) => doFoo(this, a, b, 'fixed-value')
}
I find the fat-arrow syntax allows for much more dynamic flows that are easy to understand, more so than bind, and like the above, where bind wouldn't work.
There's a lot of oneliner possibilities when you get rid of 12+ characters `function(){ return ` ... Also, I find the fat-arrow syntax looks better in a lot of cases, where you might use bind.