Skip to main content

Interface: Peekable<T>

Defined in: projects/utilities/packages/iterator-utilities/src/lib/peekable.ts:52

Extends

  • IterableIterator<T>

Type Parameters

Type Parameter
T

Methods

[iterator]()

[iterator](): IterableIterator<T>

Defined in: node_modules/typescript/lib/lib.es2015.iterable.d.ts:53

Returns

IterableIterator<T>

Inherited from

IterableIterator.[iterator]


next()

next(...args: [] | [undefined]): IteratorResult<T, any>

Defined in: node_modules/typescript/lib/lib.es2015.iterable.d.ts:43

Parameters

ParameterType
...args[] | [undefined]

Returns

IteratorResult<T, any>

Inherited from

IterableIterator.next


peek()

peek(): IteratorResult<T, any>

Defined in: projects/utilities/packages/iterator-utilities/src/lib/peekable.ts:53

Returns

IteratorResult<T, any>


return()?

optional return(value?: any): IteratorResult<T, any>

Defined in: node_modules/typescript/lib/lib.es2015.iterable.d.ts:44

Parameters

ParameterType
value?any

Returns

IteratorResult<T, any>

Inherited from

IterableIterator.return


throw()?

optional throw(e?: any): IteratorResult<T, any>

Defined in: node_modules/typescript/lib/lib.es2015.iterable.d.ts:45

Parameters

ParameterType
e?any

Returns

IteratorResult<T, any>

Inherited from

IterableIterator.throw