• Returns a random value from an array.

    Type Parameters

    • T extends unknown

      The array type.

    Parameters

    • array: T[]

      The array to get a random value from.

    Returns T

    • A random value from the array.

Generated using TypeDoc