Skip to main content

Interface: Peekable<T>

Extends

  • IterableIterator<T>

Type parameters

Type parameter
T

Methods

[iterator]()

[iterator](): IterableIterator<T>

Returns

IterableIterator<T>

Inherited from

IterableIterator.[iterator]

Source

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


next()

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

Parameters

ParameterType
...args[] | [undefined]

Returns

IteratorResult<T, any>

Inherited from

IterableIterator.next

Source

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


peek()

peek(): IteratorResult<T, any>

Returns

IteratorResult<T, any>

Source

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


return()?

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

Parameters

ParameterType
value?any

Returns

IteratorResult<T, any>

Inherited from

IterableIterator.return

Source

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


throw()?

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

Parameters

ParameterType
e?any

Returns

IteratorResult<T, any>

Inherited from

IterableIterator.throw

Source

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