You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

8 lines
406 B

"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);
}