MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getIfNotFunction

Function getIfNotFunction

docs/pseudo.esm.sh/tinybase@9.0.0/ui-react/index.js:43–46  ·  view source on GitHub ↗
(predicate)

Source from the content-addressed store, hash-verified

41var QUERY = "Query";
42var CHECKPOINT = "Checkpoint";
43var getIfNotFunction = (predicate) => (value, then, otherwise) => predicate(value) ? (
44 /* istanbul ignore next */
45 otherwise?.()
46) : then(value);
47var GLOBAL = globalThis;
48var isNullish = (thing) => thing == null;
49var isUndefined = (thing) => thing === void 0;

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…