Arrow functions

object.callback(data => doSomethingWithData(data));

Old

object.callback(function (data) {
  doSomethingWithData(data);
});

Back to presentation