Function take$

  • Keep first n entries only (default order).

    Parameters

    • x: object

      an object (updated)

    • n: number = 1

      number of entries [1]

    Returns object

    x = {[k₀, v₀], [k₁, v₁], ...} | [kᵢ, vᵢ] ∈ x and |{[k₀, v₀], [k₁, v₁], ...}| ≤ n

Generated using TypeDoc