UNPKG

word-frequency-counter

Version:
13 lines (12 loc) 473 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.generateRandomStrings = void 0; const generateRandomStrings = (numberOfStrings, randomStringGenerator) => { const randomStrings = new Set(); for (let count = 0; count < numberOfStrings; count++) { const randomValue = randomStringGenerator(); randomStrings.add(randomValue); } return randomStrings; }; exports.generateRandomStrings = generateRandomStrings;