Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SliceIterator

Hierarchy

  • SliceIterator

Index

Constructors

Methods

Constructors

constructor

  • new SliceIterator(source: Iterator<any, any, undefined>, start: number, end?: number): SliceIterator
  • Parameters

    • source: Iterator<any, any, undefined>

      Source Iterator

    • start: number

      Zero-based positive start index, inclusive

    • Default value end: number = Infinity

      Zero-based positive end index, exclusive, defaults to end of iterator

    Returns SliceIterator

Methods

next

  • next(): IteratorReturnResult<any> | IteratorYieldResult<any> | { done: boolean }
  • Returns IteratorReturnResult<any> | IteratorYieldResult<any> | { done: boolean }

Generated using TypeDoc