chatty-pub/node_modules/parse5/lib/common/utils.js
كارل مبارك 374620645c initial commit
2021-06-26 13:12:56 +02:00

14 lines
321 B
JavaScript

'use strict';
exports.mergeOptions = function (defaults, options) {
options = options || {};
return [defaults, options].reduce(function (merged, optObj) {
Object.keys(optObj).forEach(function (key) {
merged[key] = optObj[key];
});
return merged;
}, {});
};