😶 A function that does nothing and returns undefined.

Syntax

TypeScript
import { noop } from '@opentf/std';

noop(): undefined;

Returns

undefined.

Examples

TypeScript
noop(); //=> undefined

// Useful as a default callback
const { onComplete = noop } = options;
Last updated on
Edit this page