Skip to content

Promise Helpers

.then() interceptors for guarding promise chains and logging values in-line.

FunctionDescription
consoleLogPromiseLogs the resolved value to the console without altering it.
falsyPromiseOrThrowThrows if the resolved value is truthy.
meaningPromiseOrThrowThrows if the resolved value is empty ("", null, undefined, [], {}).
truthyPromiseOrThrowThrows if the resolved value is falsy.