first commit
This commit is contained in:
13
build/node_modules/parse5/lib/common/utils.js
generated
vendored
Normal file
13
build/node_modules/parse5/lib/common/utils.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'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;
|
||||
}, {});
|
||||
};
|
||||
Reference in New Issue
Block a user