MCPcopy
hub / github.com/TTLabs/EvaporateJS / extend

Function extend

evaporate.js:2024–2041  ·  view source on GitHub ↗
(obj1, obj2, obj3)

Source from the content-addressed store, hash-verified

2022 }
2023
2024 function extend(obj1, obj2, obj3) {
2025 function ext(target, source) {
2026 if (typeof source !== 'object') { return; }
2027 for (var key in source) {
2028 if (source.hasOwnProperty(key)) {
2029 target[key] = source[key];
2030 }
2031 }
2032 }
2033
2034 obj1 = obj1 || {};
2035 obj2 = obj2 || {};
2036 obj3 = obj3 || {};
2037 ext(obj2, obj3);
2038 ext(obj1, obj2);
2039
2040 return obj1;
2041 }
2042
2043 function getSavedUploads(purge) {
2044 var uploads = JSON.parse(historyCache.getItem('awsUploads') || '{}');

Callers 4

EvaporateFunction · 0.85
evaporate.jsFile · 0.85
FileUploadFunction · 0.85
SignedS3AWSRequestFunction · 0.85

Calls 1

extFunction · 0.85

Tested by

no test coverage detected