MCPcopy Index your code
hub / github.com/ygs-code/vue / toObject

Function toObject

vue.js:369–377  ·  view source on GitHub ↗

*函数名 :toObject *函数功能描述 : 和并对象数组合并成一个对象 *函数参数 : arr 数组对象类 *函数返回值 : *作者 : *函数创建日期 : *函数修改日期 : *修改人 : *修改原因 : *版本 : *历史版本 :

(arr)

Source from the content-addressed store, hash-verified

367 ***********************************************************************************************/
368
369 function toObject(arr) {
370 var res = {};
371 for (var i = 0; i < arr.length; i++) {
372 if (arr[i]) {
373 extend(res, arr[i]);
374 }
375 }
376 return res
377 }
378
379 /**
380 * Perform no operation.

Callers 2

bindObjectPropsFunction · 0.85
normalizeStyleBindingFunction · 0.85

Calls 1

extendFunction · 0.85

Tested by

no test coverage detected