Files
Shifted/node_modules/fast-check/lib/esm/arbitrary/falsy.js
2026-02-10 01:14:19 +00:00

9 lines
329 B
JavaScript

import { BigInt } from '../utils/globals.js';
import { constantFrom } from './constantFrom.js';
export function falsy(constraints) {
if (!constraints || !constraints.withBigInt) {
return constantFrom(false, null, undefined, 0, '', NaN);
}
return constantFrom(false, null, undefined, 0, '', NaN, BigInt(0));
}