@nevware21/ts-utils
    Preparing search index...

    Function iterTake

    • Creates a lazy iterator that yields at most count values.

      Type Parameters

      • T

      Parameters

      • iter: Iterator<T, any, undefined> | Iterable<T>
      • count: number

      Returns IterableIterator<T>

      0.15.0

      const firstThree = iterTake([10, 20, 30, 40, 50], 3);
      iterToArray(firstThree); // [10, 20, 30]