Skip to content

noop() ​

Import from
@gabreusi/hyrax
Examples
Run, answers asserted
ts
function noop(..._values: unknown[]): void;

Defined in: core/noop.ts:12

A function that does nothing. Accepts any arguments and returns undefined. Useful as a default callback or placeholder.

Parameters ​

ParameterTypeDescription
..._valuesunknown[]Ignored.

Returns ​

void

Example ​

ts
noop(1, 2, 3);   // => undefined

MIT License. Every example on these pages is type-checked against the built package, and the core ones are run.