Add node modules and new code for release (#39)
Co-authored-by: tbarnes94 <tbarnes94@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a10d84bc2e
commit
7ad2aa66bb
13
node_modules/parse5/lib/utils/merge-options.js
generated
vendored
Normal file
13
node_modules/parse5/lib/utils/merge-options.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function mergeOptions(defaults, options) {
|
||||
options = options || Object.create(null);
|
||||
|
||||
return [defaults, options].reduce((merged, optObj) => {
|
||||
Object.keys(optObj).forEach(key => {
|
||||
merged[key] = optObj[key];
|
||||
});
|
||||
|
||||
return merged;
|
||||
}, Object.create(null));
|
||||
};
|
||||
Reference in New Issue
Block a user