It does exactly nothing.

Type signature

() => void

Examples

noOp("anything");
// ⇒ undefined
Try in REPL

Questions

  • How to create a function that does nothing?

TypeScript sourceJavaScript source