Compose with Promises for async await node 8
/** Requires Node 8+* Also Works in chrome, simply copy and paste into console.*/ const compose = ; const get = { return Promise;} const getAllError = ;const getAll = ; { try const v = await ; console; catch e console; try const v = await ; console; catch e console; console;} ;
Alternatives
Use ramda R.composeP
Contributions Welcome
Thanks to @cameronbourke and @gwyneplaine for the discussion. :D