TreasureTrails/node_modules/fast-check/lib/arbitrary/constantFrom.js

11 lines
396 B
JavaScript
Raw Permalink Normal View History

2026-03-18 09:02:21 -05:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.constantFrom = constantFrom;
const ConstantArbitrary_1 = require("./_internals/ConstantArbitrary");
function constantFrom(...values) {
if (values.length === 0) {
throw new Error('fc.constantFrom expects at least one parameter');
}
return new ConstantArbitrary_1.ConstantArbitrary(values);
}