MCPcopy Create free account
hub / github.com/caike/jQuery-Simple-Timer / extend

Function extend

tests/qunit-2.9.2.js:224–236  ·  view source on GitHub ↗
(a, b, undefOnly)

Source from the content-addressed store, hash-verified

222 }
223
224 function extend(a, b, undefOnly) {
225 for (var prop in b) {
226 if (hasOwn.call(b, prop)) {
227 if (b[prop] === undefined) {
228 delete a[prop];
229 } else if (!(undefOnly && typeof a[prop] !== "undefined")) {
230 a[prop] = b[prop];
231 }
232 }
233 }
234
235 return a;
236 }
237
238 function objectType(obj) {
239 if (typeof obj === "undefined") {

Callers 5

qunit-2.9.2.jsFile · 0.85
createModuleFunction · 0.85
TestFunction · 0.85
onErrorFunction · 0.85
onUnhandledRejectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected