Files
ospab.host/node_modules/fast-check/lib/esm/arbitrary/constantFrom.js
2025-09-15 18:10:26 +03:00

9 lines
287 B
JavaScript

import { ConstantArbitrary } from './_internals/ConstantArbitrary.js';
function constantFrom(...values) {
if (values.length === 0) {
throw new Error('fc.constantFrom expects at least one parameter');
}
return new ConstantArbitrary(values);
}
export { constantFrom };