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

Function Merge

src/utils/object/Merge.js:25–38  ·  view source on GitHub ↗
(obj1, obj2)

Source from the content-addressed store, hash-verified

23 * @return {object} A new object containing the merged properties of obj1 and obj2.
24 */
25var Merge = function (obj1, obj2)
26{
27 var clone = Clone(obj1);
28
29 for (var key in obj2)
30 {
31 if (!clone.hasOwnProperty(key))
32 {
33 clone[key] = obj2[key];
34 }
35 }
36
37 return clone;
38};
39
40module.exports = Merge;

Callers 14

Settings.jsFile · 0.85
RebindContext.jsFile · 0.85
SubmitterQuad.jsFile · 0.85
MatterPhysics.jsFile · 0.85
ArcadePhysics.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…