Skip to main content
Skip to main content

Iterator

Type parameters

TobjectRequired
TReturnobjectRequired
TNextobjectRequired

Methods

next

**next**(...args): [IteratorResult](/references/services/types/IteratorResult)<T, TReturn>

Parameters

args[] | [TNext]Required

Returns

IteratorResult<T, TReturn>

IteratorResultIteratorResult<T, TReturn>Required

return

Optional **return**(value?): [IteratorResult](/references/services/types/IteratorResult)&#60;T, TReturn&#62;

Parameters

valueTReturn

Returns

IteratorResult<T, TReturn>

IteratorResultIteratorResult<T, TReturn>Required

throw

Optional **throw**(e?): [IteratorResult](/references/services/types/IteratorResult)&#60;T, TReturn&#62;

Parameters

eany

Returns

IteratorResult<T, TReturn>

IteratorResultIteratorResult<T, TReturn>Required
Was this section helpful?