MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getIfNotFunction

Function getIfNotFunction

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:45–48  ·  view source on GitHub ↗
(predicate)

Source from the content-addressed store, hash-verified

43var strSplit = (str, separator = EMPTY_STRING, limit) => str.split(separator, limit);
44var math = Math;
45var getIfNotFunction = (predicate) => (value, then, otherwise) => predicate(value) ? (
46 /* istanbul ignore next */
47 otherwise?.()
48) : then(value);
49var GLOBAL = globalThis;
50var mathMax = math.max;
51var mathMin = math.min;

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…