• Returns random value from an array.

    Type Parameters

    • T

    Parameters

    • source: ArrayLike<T>
    • throwIfEmpty: true

    Returns T

  • Type Parameters

    • T

    Parameters

    • source: ArrayLike<T>
    • Optional throwIfEmpty: boolean

    Returns T | undefined

Generated using TypeDoc