Returns the first argument if it is a function (regular, async, generator, …), or your custom fallback value otherwise.
This module exports one function:
Return x
if x
seems to be some kind of function, otherwise return no
.
In case no
is omitted, JavaScript rules makes it default to undefined
.
See test/usage.js for examples.
- Needs more/better tests and docs.
ISC