- map<V, X>(it, f): Generator<X>
Parameters
- it: AsyncIterable<V>
- f: ((v: V) => X | Promise<X>)
- (v): X | Promise<X>
Returns X | Promise<X>
Returns Generator<X>
- map<V, X>(it, f): Generator<X>
Parameters
- it: V[] | Iterable<V>
- f: ((v: V) => X)
Returns Generator<X>
Maps an iterable through function
f
It can also be used to transform types:
Param: it
Param: f