@yookue/ts-lang-utils
    Preparing search index...

    Function randomElement

    • Returns a random element of the array

      Type Parameters

      • E

      Parameters

      • Optionalarray: E[]

        the array to random

      Returns undefined | E

      a random element of the array

      David Hsing

      randomElement(['1', '2', '3']);