Functional
noop

😶 A function that does nothing and returns undefined.

Syntax

import { noop } from '@opentf/std';
 
noop(): undefined;

Returns

undefined.

Examples

noop(); //=> undefined
 
// Useful as a default callback
const { onComplete = noop } = options;

Related

Try