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

Function getThing

docs/pseudo.esm.sh/tinybase@9.0.0/ui-solid-dom/index.js:148–148  ·  view source on GitHub ↗
(thing)

Source from the content-addressed store, hash-verified

146];
147var isEqual = (thing1, thing2) => thing1 === thing2;
148var getThing = (thing) => isFunction(thing) ? thing() : thing;
149var EMPTY_LISTENER_ARG_GETTERS = [];
150var addAndDelListener = (thing, listenable, ...args) => {
151 const listenerId = thing?.[ADD + listenable + LISTENER]?.(...args);

Callers 2

getResultFunction · 0.70
useListenableFunction · 0.70

Calls 2

isFunctionFunction · 0.70
thingFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…