Invoking this function has no side effects and always returns undefined.
Useful as a placeholder callback or default implementation when a function
signature must be satisfied.
Parameters
...args: unknown[]
Arguments that will be ignored.
Returns void
Example
nop(); // does nothing nop(1, 2, 3); // still does nothing nop("a", true); // also does nothing
A no-operation function.
Invoking this function has no side effects and always returns
undefined. Useful as a placeholder callback or default implementation when a function signature must be satisfied.