This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/util/attempt.js
T

15 lines
247 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function attempt(func) {
try {
return [null, func()];
}
catch (error) {
return [error, null];
}
}
exports.attempt = attempt;