Skip to content

webshrine / stdlib/src / noop

Function: noop()

noop(): void

A no-operation function that returns undefined regardless of the arguments it receives.

Uses as mock in rare cases to satisfy types and decrease the amount of code.

Returns

void

Defined in

packages/stdlib/src/utils/common.ts:11