MCPcopy Index your code
hub / github.com/nodejs/node / flatMap

Method flatMap

deps/undici/src/types/fetch.d.ts:74–74  ·  view source on GitHub ↗
(callbackfn: (value: T, index: number) => Iterator<U> | Iterable<U>)

Source from the content-addressed store, hash-verified

72 take(limit: number): SpecIteratorObject<T>;
73 drop(count: number): SpecIteratorObject<T>;
74 flatMap<U>(callbackfn: (value: T, index: number) => Iterator<U> | Iterable<U>): SpecIteratorObject<U>;
75 reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T;
76 reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T;
77 reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U;

Calls

no outgoing calls

Tested by

no test coverage detected