function noop
noop(): void

Returns a function that does nothing.

Examples

Example 1

const doNothing = noop();
doNothing(); // does nothing

Return Type

void

Usage

import { noop } from ".";