Interface StringIterator<T>
interface StringIterator<T> {
[iterator](): StringIterator<T>;
next(...__namedParameters: [] | [unknown]): IteratorResult<T, any>;
return?(value?: any): IteratorResult<T, any>;
throw?(e?: any): IteratorResult<T, any>;
}
[iterator](): StringIterator<T>;
next(...__namedParameters: [] | [unknown]): IteratorResult<T, any>;
return?(value?: any): IteratorResult<T, any>;
throw?(e?: any): IteratorResult<T, any>;
}
Type Parameters
Hierarchy
- IteratorObject<T, BuiltinIteratorReturn, unknown>
- StringIterator (view full)
Index
Methods
Methods
[iterator]
- [iterator](): StringIterator<T>
Returns StringIterator<T>
next
- next(...__namedParameters): IteratorResult<T, any>
Parameters
Rest
...__namedParameters: [] | [unknown]
Returns IteratorResult<T, any>
Optional
return
- return(value?): IteratorResult<T, any>
Parameters
Optional
value: any
Returns IteratorResult<T, any>
Optional
throw
- throw(e?): IteratorResult<T, any>
Parameters
Optional
e: any
Returns IteratorResult<T, any>
Describes an Iterator produced by the runtime that inherits from the intrinsic
Iterator.prototype
.