- Preparing search index...
- The search index is not available
atomic-fns
- enumerate<T>(iterable: Iterable<T>, start?: number): Generator<[number, T], void, unknown>
-
Parameters
-
iterable: Iterable<T>
-
start: number = 0
Returns Generator<[number, T], void, unknown>
Yields elements like
[index, item]
from an iterable. Index starts at zero by default.Returns
A generator with tuples like
[index, item]
.Example