Function: nop
lib.nop
▸ nop(input
): unknown
No-op passthrough function which returns what is handed to it. Useful to explicitly silence promise chains.
Parameters
Name | Type | Description |
---|---|---|
input |
unknown |
Whatever the promise resolves to. This is also returned by the function. |
Returns
unknown