Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Notes from the Wes Bos workshop at using
/* Wes' original example is great, but we've found the following
* example of
* to read really well and keep us from putting too much in our `then` functions.
const logError = (err) => console.log('Something Happened!', err);
/* Reason:
* We can do this, because `(data) => func(data)` is creating an anonymous
* function with the same signature (shape) as `func(data)`. You don't need
* to wrap the `func(data)` call in an anonymous function.

This comment has been minimized.

Copy link

davekiss commented Jun 7, 2018


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.