@szilanor/stream
    Preparing search index...

    Variable dropConst

    drop: <T>(count: number) => OperationFunction<T, T> = skip

    Type Declaration

      • <T>(count: number): OperationFunction<T, T>
      • Returns an OperationFunction that skips the first count elements from the source.

        Type Parameters

        • T

          Type of items in the source.

        Parameters

        • count: number

          Number of elements to skip.

        Returns OperationFunction<T, T>

        An OperationFunction that skips the first count elements from the source.

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