I'm learning to drink the ES6 koolaid ...
I've read that there are contexts where using a ES6 "arrow function" is not a good idea. I think the main one where the "this" variable is expected, like in methods. Is there a problem using an arrow function to define a callback; specifically for a Mutation Observer, like this:
var observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
// do stuff...
});
});
This works in Chrome. Haven't tried other browsers.