Skip to main content

skip()

skip<T>(size): OperatorFunction<T, T>

Defined in: src/Skip.ts:17

Creates an operator that drops the first size items and passes through the rest.

Type Parameters​

T​

T

Parameters​

size​

number

the number of items to drop

Returns​

OperatorFunction<T, T>

an operator function

Example​

const result = await chain([1, 2, 3, 4, 5]).skip(2).toArray();
// => [3, 4, 5]