MCPcopy Create free account
hub / github.com/answer19981/MiniHand / arr2ObjectArr

Function arr2ObjectArr

miniprogram/helper/data_helper.js:219–229  ·  view source on GitHub ↗

*简单数组转对象数组 * @param {*} arr [1,2,3] * @param {*} key [x1,x2,x3] * @returns [{x1:1,x2:1,x3:1},{x1:2,x2:2,x3:2},{x1:3,x2:3,x3:3}]

(arr, key1, key2, key3)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected