Arrow functions
object.callback(data => doSomethingWithData(data));
Old
object.callback(function (data) {
doSomethingWithData(data);
});
object.callback(data => doSomethingWithData(data));
object.callback(function (data) {
doSomethingWithData(data);
});