MCPcopy
hub / github.com/kennethcachia/background-check / extend

Function extend

test/qunit.js:1516–1531  ·  view source on GitHub ↗
( a, b )

Source from the content-addressed store, hash-verified

1514}
1515
1516function extend( a, b ) {
1517 for ( var prop in b ) {
1518 if ( hasOwn.call( b, prop ) ) {
1519 // Avoid "Member not found" error in IE8 caused by messing with window.constructor
1520 if ( !( prop === "constructor" && a === window ) ) {
1521 if ( b[ prop ] === undefined ) {
1522 delete a[ prop ];
1523 } else {
1524 a[ prop ] = b[ prop ];
1525 }
1526 }
1527 }
1528 }
1529
1530 return a;
1531}
1532
1533/**
1534 * @param {HTMLElement} elem

Callers 2

TestFunction · 0.85
qunit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected