Update to v13 and add queue and completely change code
This commit is contained in:
parent
dcef23d0ed
commit
55a38726a3
6706 changed files with 424137 additions and 61608 deletions
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));
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue