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]

Defined in

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

Defined in

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


peek()

peek(): IteratorResult<T, any>

Returns

IteratorResult<T, any>

Defined in

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

Defined in

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

Defined in

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