• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3module.exports = function mergeOptions(defaults, options) {
4    options = options || Object.create(null);
5
6    return [defaults, options].reduce((merged, optObj) => {
7        Object.keys(optObj).forEach(key => {
8            merged[key] = optObj[key];
9        });
10
11        return merged;
12    }, Object.create(null));
13};
14