Files
RoggioApp/node_modules/fast-check/lib/esm/arbitrary/compareFunc.js
T
2026-04-26 19:42:42 +02:00

10 lines
344 B
JavaScript
Executable File

import { buildCompareFunctionArbitrary } from './_internals/builders/CompareFunctionArbitraryBuilder.js';
const safeObjectAssign = Object.assign;
export function compareFunc() {
return buildCompareFunctionArbitrary(safeObjectAssign((hA, hB) => hA - hB, {
toString() {
return '(hA, hB) => hA - hB';
},
}));
}