consoleLogPromise
Generates a .then() interceptor that logs the resolved value to the console without altering
it.
Available since v1.0.1
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
prefix | string | Optional. Prefixes the logged value in the console. |
Returns
Section titled “Returns”(data: T) => T — A .then() interceptor: logs prefix, data to the console, then returns
data unchanged.
