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

Function tryCatch

docs/pseudo.esm.sh/tinybase@9.0.0/ui-solid-inspector/index.js:598–604  ·  view source on GitHub ↗
(action, then1, then2)

Source from the content-addressed store, hash-verified

596 }
597};
598var tryCatch = async (action, then1, then2) => {
599 try {
600 return await action();
601 } catch (error) {
602 then1?.(error);
603 }
604};
605var arrayHas = (array, value) => array.includes(value);
606var arrayIndexOf = (array, value) => array.indexOf(value);
607var arrayEvery2 = (array, cb) => array.every(cb);

Callers 9

runFunction · 0.70
loadFunction · 0.70
startAutoLoadFunction · 0.70
stopAutoLoadFunction · 0.70
saveFunction · 0.70
storageListenerFunction · 0.70
setTablesJsonFunction · 0.70
setValuesJsonFunction · 0.70
setJsonFunction · 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…