MCPcopy
hub / github.com/alyssaxuu/motionity / executeCallback

Function executeCallback

src/js/libraries/localbase.js:1412–1420  ·  view source on GitHub ↗
(promise, callback)

Source from the content-addressed store, hash-verified

1410var Promise$1 = Promise;
1411
1412function executeCallback(promise, callback) {
1413 if (callback) {
1414 promise.then(function (result) {
1415 callback(null, result);
1416 }, function (error) {
1417 callback(error);
1418 });
1419 }
1420}
1421
1422function executeTwoCallbacks(promise, callback, errorCallback) {
1423 if (typeof callback === 'function') {

Callers 15

getItemFunction · 0.85
iterateFunction · 0.85
setItemFunction · 0.85
removeItemFunction · 0.85
clearFunction · 0.85
lengthFunction · 0.85
keyFunction · 0.85
keysFunction · 0.85
dropInstanceFunction · 0.85
getItem$1Function · 0.85
iterate$1Function · 0.85
_setItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected