Promise Helpers
.then() interceptors for guarding promise chains and logging values in-line.
Functions
Section titled “Functions”| Function | Description |
|---|---|
consoleLogPromise | Logs the resolved value to the console without altering it. |
falsyPromiseOrThrow | Throws if the resolved value is truthy. |
meaningPromiseOrThrow | Throws if the resolved value is empty ("", null, undefined, [], {}). |
truthyPromiseOrThrow | Throws if the resolved value is falsy. |
