Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Classes Are Making Me Sad. Parent comment
Whenever I need to export class function, I do
var foo = () => bar.baz()
Also with the ... notation, I stopped worrying about .call and .apply. So I can write
var someArray = [a,b,c] var foo = () => bar.baz(...someArray)
There are no comments on this comment yet.
Whenever I need to export class function, I do
, no more worrying, no need to understand what the hell bind does exactly.Also with the ... notation, I stopped worrying about .call and .apply. So I can write
and so on.