UNPKG

typia

Version:

Superfast runtime validators with only one line

12 lines (11 loc) 329 B
import { _randomInteger } from "./_randomInteger.mjs"; //#region src/internal/_randomPick.ts const _randomPick = (array) => array[random(array)]; const random = (array) => _randomInteger({ type: "integer", minimum: 0, maximum: array.length - 1 }); //#endregion export { _randomPick }; //# sourceMappingURL=_randomPick.mjs.map