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/negate.js
T

15 lines
316 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function negate(func) {
if (typeof func !== 'function') {
throw new TypeError('Expected a function');
}
return function (...args) {
return !func.apply(this, args);
};
}
exports.negate = negate;