MCPcopy
hub / github.com/SeleniumHQ/selenium / extend

Function extend

third_party/js/qunit/qunit.js:368–379  ·  view source on GitHub ↗
(a, b, undefOnly)

Source from the content-addressed store, hash-verified

366 return subset;
367 }
368 function extend(a, b, undefOnly) {
369 for (var prop in b) {
370 if (hasOwn$1.call(b, prop)) {
371 if (b[prop] === undefined) {
372 delete a[prop];
373 } else if (!(undefOnly && typeof a[prop] !== 'undefined')) {
374 a[prop] = b[prop];
375 }
376 }
377 }
378 return a;
379 }
380 function objectType(obj) {
381 if (typeof obj === 'undefined') {
382 return 'undefined';

Callers 4

qunit.jsFile · 0.70
createModuleFunction · 0.70
TestFunction · 0.70
setUrlFunction · 0.70

Calls 1

callMethod · 0.65

Tested by

no test coverage detected