Function take

  • Keep first n entries only (default order).

    Parameters

    • x: object

      an object

    • n: number = 1

      number of entries [1]

    Returns object

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

Generated using TypeDoc