Using ES6 arrow functions with lexical this binding is great.
this
However, I ran into an issue a moment ago using it with a typical jQuery click binding:
Event binding
$button.on('click', (e) => { var $this = $(e.currentTarget); // ... deal with $this });
Loop
Array.prototype.forEach.call($items, (el, index, obj) => { var $this = $(el); // ... deal with $this });