arrow => in angular 2+ ??
Same as the use of fat arrow elsewhere
it's a neat and compact way to define a function and it has different this binding, which sometimes makes more sense, and lack some of the legacy stuff (arguments) that you're unlikely to need anyway
It's functional programming. A lot of languages implement these kinds of constructions in their language nowadays.
Обсуждают сегодня