MCPcopy
hub / github.com/phaserjs/phaser / MergeRight

Function MergeRight

src/utils/object/MergeRight.js:22–35  ·  view source on GitHub ↗
(obj1, obj2)

Source from the content-addressed store, hash-verified

20 * @return {object} The merged object. `obj1` and `obj2` are not modified.
21 */
22var MergeRight = function (obj1, obj2)
23{
24 var clone = Clone(obj1);
25
26 for (var key in obj2)
27 {
28 if (clone.hasOwnProperty(key))
29 {
30 clone[key] = obj2[key];
31 }
32 }
33
34 return clone;
35};
36
37module.exports = MergeRight;

Callers 4

TweenBuilderFunction · 0.85
NumberTweenBuilderFunction · 0.85
ParticleEmitter.jsFile · 0.85
MergeRight.test.jsFile · 0.85

Calls 1

CloneFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…