MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / extend

Function extend

libs/htmlwidgets-1.5.3/htmlwidgets.js:37–50  ·  view source on GitHub ↗
(target /*, ... */)

Source from the content-addressed store, hash-verified

35
36 // Implement jQuery's extend
37 function extend(target /*, ... */) {
38 if (arguments.length == 1) {
39 return target;
40 }
41 for (var i = 1; i < arguments.length; i++) {
42 var source = arguments[i];
43 for (var prop in source) {
44 if (source.hasOwnProperty(prop)) {
45 target[prop] = source[prop];
46 }
47 }
48 }
49 return target;
50 }
51
52 // IE8 doesn't support Array.forEach.
53 function forEach(values, callback, thisArg) {

Callers 1

htmlwidgets.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected