Options
All
  • Public
  • Public/Protected
  • All
Menu

@steelbreeze/state

Index

Functions

random

  • random<TSource>(source: TSource[]): TSource
  • Returns a random element from an array.

    Type parameters

    • TSource

      The type of elements within the source array.

    Parameters

    • source: TSource[]

      The array to select a random element from.

    Returns TSource

    Returns a random element from the soucre.

Generated using TypeDoc