MCPcopy Create free account
hub / github.com/Lobos/react-ui / emptyFunction

Function emptyFunction

docs/lib/react.js:18553–18553  ·  view source on GitHub ↗

* This function accepts and discards inputs; it has no side effects. This is * primarily useful idiomatically for overridable function endpoints which * always need to be callable, since JS lacks a null-call idiom ala Cocoa.

()

Source from the content-addressed store, hash-verified

18551 * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
18552 */
18553function emptyFunction() {}
18554
18555emptyFunction.thatReturns = makeEmptyFunction;
18556emptyFunction.thatReturnsFalse = makeEmptyFunction(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…