MCPcopy Create free account
hub / github.com/SmartTokenLabs/TokenScript / to

Function to

bootstrap-js/modules/ts_helpers.js:241–251  ·  view source on GitHub ↗
(promise, improved)

Source from the content-addressed store, hash-verified

239 * @return [error, result]
240 */
241export function to(promise, improved){
242 return promise
243 .then((data) => [null, data])
244 .catch((err) => {
245 if (improved) {
246 Object.assign(err, improved);
247 }
248
249 return [err]; // which is same as [err, undefined];
250 });
251}
252
253/**
254 * returns

Callers 3

renderPropsMethod · 0.90
getPropsMethod · 0.90
negotiateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected