Function randomEntry

  • Pick an arbitrary entry.

    Parameters

    • x: object

      an object

    • fr: ReadFunction<number> = Math.random

      random number generator ([0, 1))

    Returns [string, any]

    [kᵢ, vᵢ] | [kᵢ, vᵢ] ∈ x `

Generated using TypeDoc