Function randomKey

  • Pick an arbitrary key.

    Returns

    kᵢ | kᵢ ∈ x[0]

    Type Parameters

    • K

    • V

    Parameters

    • x: Lists<K, V>

      lists

    • fr: ReadFunction<number> = Math.random

      random number generator ([0, 1))

    Returns K

Generated using TypeDoc