@metreeca/pipe - v0.9.11
    Preparing search index...

    Function take

    • Creates a task taking only the first n items from the stream.

      Items are processed sequentially and output order is preserved.

      Type Parameters

      • V

        The type of items in the stream

      Parameters

      • n: number

        The maximum number of items to take (negative values treated as zero)

      Returns Task<V>

      A task that takes the first n items