MCPcopy Create free account
hub / github.com/TruthHun/BookStack / extend

Function extend

static/word2md/mammoth.browser.js:12835–12845  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12833 * @return {Object} a new object with the data of the others.
12834 */
12835var extend = function() {
12836 var result = {}, i, attr;
12837 for (i = 0; i < arguments.length; i++) { // arguments is not enumerable in some browsers
12838 for (attr in arguments[i]) {
12839 if (arguments[i].hasOwnProperty(attr) && typeof result[attr] === "undefined") {
12840 result[attr] = arguments[i][attr];
12841 }
12842 }
12843 }
12844 return result;
12845};
12846
12847/**
12848 * Transforms the (incomplete) options from the user into the complete

Callers 2

prepareFileAttrsFunction · 0.70
mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected