consoleLogPromise
Returns a function that logs data to the console and passes it through.
Available since v1.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
prefix | string | Optional prefix for the console log (optional) |
Returns
Section titled “Returns”function — A function that logs and returns the data
Examples
Section titled “Examples”Log and pass-through in a promise chain
Section titled “Log and pass-through in a promise chain”Creates a function that logs data with an optional prefix and returns it unchanged.
