MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / extend

Function extend

tests/test_code/js/moment/moment.js:86–102  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

84 }
85
86 function extend(a, b) {
87 for (var i in b) {
88 if (hasOwnProp(b, i)) {
89 a[i] = b[i];
90 }
91 }
92
93 if (hasOwnProp(b, 'toString')) {
94 a.toString = b.toString;
95 }
96
97 if (hasOwnProp(b, 'valueOf')) {
98 a.valueOf = b.valueOf;
99 }
100
101 return a;
102 }
103
104 function createUTC(input, format, locale, strict) {
105 return createLocalOrUTC(input, format, locale, strict, true).utc();

Callers 5

createInvalidFunction · 0.85
deprecateFunction · 0.85
mergeConfigsFunction · 0.85
configFromStringAndArrayFunction · 0.85
parsingFlagsFunction · 0.85

Calls 1

hasOwnPropFunction · 0.85

Tested by

no test coverage detected