//#region src/collection/sampleSize.d.ts /** * Gets n random elements at unique keys from collection up to the size of collection * @param collection - The collection to sample * @param n - The number of elements to sample * @returns Returns the array of sampled elements * @example * const arr = [1, 2, 3, 4, 5]; * sampleSize(arr, 2); // => random 2 elements from arr */ declare function sampleSize(collection: T[], n: number): T[]; //#endregion export { sampleSize }; //# sourceMappingURL=sampleSize.d.mts.map