Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
8
node_modules/fast-check/lib/arbitrary/subarray.js
generated
vendored
Normal file
8
node_modules/fast-check/lib/arbitrary/subarray.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.subarray = subarray;
|
||||
const SubarrayArbitrary_1 = require("./_internals/SubarrayArbitrary");
|
||||
function subarray(originalArray, constraints = {}) {
|
||||
const { minLength = 0, maxLength = originalArray.length } = constraints;
|
||||
return new SubarrayArbitrary_1.SubarrayArbitrary(originalArray, true, minLength, maxLength);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue