MCPcopy
hub / github.com/ustbhuangyi/vue-analysis / extend

Function extend

vue/src/shared/util.js:223–228  ·  view source on GitHub ↗
(to: Object, _from: ?Object)

Source from the content-addressed store, hash-verified

221 * Mix properties into target object.
222 */
223export function extend (to: Object, _from: ?Object): Object {
224 for (const key in _from) {
225 to[key] = _from[key]
226 }
227 return to
228}
229
230/**
231 * Merge an Array of Objects into a single Object.

Callers 15

codegen.spec.jsFile · 0.90
optimizer.spec.jsFile · 0.90
parser.spec.jsFile · 0.90
compileFunction · 0.90
processForFunction · 0.90
constructorMethod · 0.90
mergeAssetsFunction · 0.90
options.jsFile · 0.90
normalizeInjectFunction · 0.90
installSSRHelpersFunction · 0.90
renderSSRStyleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected