9 lines
234 B
JavaScript
Raw Permalink Normal View History

2026-05-31 13:21:13 +02:00
//#region src/_internal/compareValues.ts
function compareValues(a, b, order) {
if (a < b) return order === "asc" ? -1 : 1;
if (a > b) return order === "asc" ? 1 : -1;
return 0;
}
//#endregion
exports.compareValues = compareValues;