javascript - What is the difference between the async.compose function and underscore.compose function? -
both seem doing same thing, i.e. calculating f(g(h(x))), when called async.compose(f, g, h) or _.compose(f, g, h).
is there difference between 2 calls ?
as name implies, async.compose composes asynchronous functions.
it gets result via callback parameter, not return value.
Comments
Post a Comment