noop

View sourcenoop(..._args: unknown[]): void

Does nothing with the supplied arguments.

Use this as a callback when an operation is optional. It always returns undefined.

Examples

values.forEach(noop)

Parameters

NameDescriptionDefault
..._args

Values ignored by the function.

—

Returns

Always undefined.