MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / objectifyPromises

Function objectifyPromises

packages/@stdlib/misc/src/promises.ts:52–59  ·  view source on GitHub ↗
(keys: K, promises: P)

Source from the content-addressed store, hash-verified

50}
51
52export function objectifyPromises<
53 K extends string[],
54 P extends PromiseLike<any>[],
55>(keys: K, promises: P): { [key in K[number]]: P[number] } {
56 return objFromEntries(
57 keys.map((key, index) => [key, promises[index]]),
58 ) as any;
59}
60
61export async function objectifyPromiseResults<
62 K extends string[],

Callers

nothing calls this directly

Calls 1

objFromEntriesFunction · 0.90

Tested by

no test coverage detected