Skip to content

noop

A function that does nothing (no operation).

Syntax

typescript
noop(): void

Parameters

NameTypeDescription
None.

Returns

TypeDescription
voidReturns nothing.

Example

typescript
noop(); // undefined

Notes

  • Useful as a default function, placeholder, or callback.

References

Released under the MIT License.