@tsdotnet/random - v1.1.7
    Preparing search index...

    Function one

    • Returns random value from an array.

      Type Parameters

      • T

      Parameters

      • source: ArrayLike<T>
      • throwIfEmpty: true

      Returns T

    • Returns random value from an array.

      Type Parameters

      • T

      Parameters

      • source: ArrayLike<T>
      • OptionalthrowIfEmpty: boolean

      Returns undefined | T