/** * Return a random element from given array * * @export * @template T * @param {T[]} collection * @returns {T} */ export default function randomArrayElement(collection: T[]): T;