Function take

  • Keep first n entries only (default order).

    Returns

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

    Type Parameters

    • K

    • V

    Parameters

    • x: Lists<K, V>

      lists

    • n: number = 1

      number of entries [1]

    Returns Lists<K, V>

Generated using TypeDoc