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/compat/function/defer.mjs
T

9 lines
190 B
JavaScript

function defer(func, ...args) {
if (typeof func !== 'function') {
throw new TypeError('Expected a function');
}
return setTimeout(func, 1, ...args);
}
export { defer };