A Small Example of the Convenience of Currying
A while back I made a helper function:
export const accessor = (obj, defaultValue = null) => x => _.get(obj, x, defaultValue);
Pretty straightforward. It's just a function which creates a custom version of lodash's get for a specific object. Great for react.