Function take

  • Keep first n values only. 📘

    Type Parameters

    • T

    Parameters

    • x: Iterable<T>

      an iterable

    • Optional n: number

      number of values [1]

    Returns IterableIterator<T>

    x[0..n]

Generated using TypeDoc