LendAndRegret/node_modules/es-toolkit/dist/compat/util/gt.mjs
2026-05-02 17:27:43 +08:00

11 lines
238 B
JavaScript

import { toNumber } from './toNumber.mjs';
function gt(value, other) {
if (typeof value === 'string' && typeof other === 'string') {
return value > other;
}
return toNumber(value) > toNumber(other);
}
export { gt };