The arrow function is one of my favorite new additions to JavaScript, I think it's most useful to keep the scope of this consistent.
this
It also makes it really easy to make small functions
let a = { value: Date.now(), isMonday: _ => new Date(this.value).getDay() === 1 }
Also if you are into functional programming, the arrow functions is the best thing to ever happen to javascript
Yes, I also love how it removes a lot of this pain!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The arrow function is one of my favorite new additions to JavaScript, I think it's most useful to keep the scope of
this
consistent.It also makes it really easy to make small functions
Also if you are into functional programming, the arrow functions is the best thing to ever happen to javascript
Yes, I also love how it removes a lot of this pain!