/** * Returns a random element from a collection * * @since 1.0.0 * * @param {Array|Object} collection - The collection to sample from * @returns {*} - Returns the random element * * @example * * sample([1, 2, 3, 4, 5]) // => a random number from the array * * sample({ a: 1, b: 2, c: 3 }) // => a random value from the object * */ declare const sample: (collection: T) => any; export default sample;