Creates a function that will call a condition callback,
if it returns true it will run the then callback,
if it returns false it will run the otherwise callback.
Returns the value of either then or otherwise callbacks,
depending on which one was called.
If any of the three callbacks it receives returns a Promise,
the returned value will be wrapped in a Promise.
Creates a function that will run the given callback
with a Match object passed as the argument,
that will have it's method run be called with the received arguments.
It will return the value that the Match object returns,
if it's a Promise TypeScript will infer it.
Creates a function that will run the given callback function with the arguments it receives.
It will return an array with the value it received as the first element,
and the value returned from the callback function as the second element.
If the callback returns a Promise,
the returned array will be wrapped in a Promise.
Creates a function that will run the given callback function with the arguments it receives.
The return value of the callback function will be ignored, and the function will return the value it received.
If the callback returns a Promise,
the returned value will be wrapped in a Promise.
Generated using TypeDoc
Creates a function that will assert that the given value is not
undefinedornull.If the value is
undefinedornull, it will throw the result of calling the given callback.If it's not, it will return the value it received.