UNPKG

orionsoft-react-scripts

Version:

Orionsoft Configuration and scripts for Create React App.

14 lines (10 loc) 321 B
'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; }, {}); };