Skip to content

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

Defined in

src/base/lib/index.ts:304