//#region src/collection/sample.d.ts /** * Gets a random element from collection * @param collection - The collection to sample * @returns Returns the random element * @example * const arr = [1, 2, 3, 4, 5]; * sample(arr); // => random element from arr */ declare function sample(collection: T[]): T | undefined; //#endregion export { sample }; //# sourceMappingURL=sample.d.cts.map