MCPcopy Create free account
hub / github.com/devin87/Q.js / toObjectMap

Function toObjectMap

Q.js:430–450  ·  view source on GitHub ↗

* 将对象数组转换为键值对 eg: [{name:'a',value:1},{name:'b',value:2}] => {a:1,b:2} * @param {Array. } list 要转换的对象数组 * @param {string} propKey 对象中作为键的属性 eg: name * @param {string|boolean} propValue 对象中作为值的属性, 为true时将给对象增加index属性, 为空时将整个对象作为值

(list, propKey, propValue)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Q.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected