A function that does nothing and returns undefined.
undefined
Useful as a default callback, a placeholder teardown, or to explicitly ignore a promise rejection (promise.catch(noop)), without allocating a new empty function each time.
promise.catch(noop)
A function that does nothing and returns
undefined.Useful as a default callback, a placeholder teardown, or to explicitly ignore a promise rejection (
promise.catch(noop)), without allocating a new empty function each time.