@szilanor/stream
    Preparing search index...

    Function skipWhile

    • Returns an OperationFunction that skips elements from the source while the predicate returns true.

      Type Parameters

      • T

        Type of items in the source.

      Parameters

      • predicate: PredicateFunction<T>

        Predicate function to determine if an element should be skipped.

      Returns OperationFunction<T, T>

      An OperationFunction that skips elements from the source while the predicate returns true.

      const result = skipWhile<number>((x) => x < 3)([1, 2, 3, 4]);
      console.log([...result]); // [3, 4]