MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / mapper

Function mapper

client/js/src/internal/asyncIteratorMap.test.ts:23–23  ·  view source on GitHub ↗
(x: number)

Source from the content-addressed store, hash-verified

21 test('works with empty input', async () => {
22 const inputGen = createAsyncGenerator([]);
23 const mapper = async (x: number) => x * 2;
24
25 const mappedGen = asyncIteratorMap(inputGen, mapper);
26 const results = await collectResults(mappedGen);

Callers 1

pumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected