@supercharge/goodies
Advanced tools
Changelog
1.6.0 - 2020-12-10
isFunction(input)
method determines whether the given input
is a functionesmResolve(input)
method returns the resolved export of input
from ESM and CommonJSmain
entrypoint in package.json
to dist
folder@hapi/lab
to jest
@hapi/code
to jest
Changelog
1.2.0 - 2020-05-12
isAsyncFunction(input)
method determining whether the given input
is an async functiontap(value, callback)
now only returns a Promise when the value is a promise or the callback is an async function. Otherwise, tap behaves synchronouslyupon(value, callback)
now only returns a Promise when the value is a promise or the callback is an async function. Otherwise, upon behaves synchronouslyChangelog
1.1.0 - 2020-04-15
upon(value, callback)
method: upon
calls the given callback
function with the value
and returns the result of the callbacktap
the value when a promise as the first argument before passing it to the callbackisPromise(input)
method: determine whether the given input
is a promise