MCPcopy Create free account
hub / github.com/Jiasm/notebook / promiseMap

Function promiseMap

javascript/promise-map.js:24–34  ·  view source on GitHub ↗

* 用来将Promise.all转换为Object的格式 * let [ * a, * b * ] = await Promise.all([ * getA(), * getB() * ]) * * ====> * * let { * a, * b * } = await promiseMap({ * a: getA(), * b: getB() * }) * * 减少因数组解构下标带来的记忆成本 * @param {Object} promises

(promises)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected