MCPcopy
hub / github.com/ygs-code/vue / extend

Function extend

vue.js:344–349  ·  view source on GitHub ↗
(to, _from)

Source from the content-addressed store, hash-verified

342 ***********************************************************************************************/
343 //对象浅拷贝,参数(to, _from)循环_from的值,会覆盖掉to的值
344 function extend(to, _from) {
345 for (var key in _from) {
346 to[key] = _from[key];
347 }
348 return to
349 }
350
351 /**
352 * Merge an Array of Objects into a single Object.

Callers 15

toObjectFunction · 0.85
mergeAssetsFunction · 0.85
vue.jsFile · 0.85
normalizeInjectFunction · 0.85
renderSlotFunction · 0.85
bindObjectListenersFunction · 0.85
initExtendFunction · 0.85
initGlobalAPIFunction · 0.85
updateAttrsFunction · 0.85
updateDOMPropsFunction · 0.85
normalizeStyleDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected