23e82e519e38b2c169be33a2af15cb86752f1cb66df33757d70f30529352aa06cc5f95bb73ec3922addb69a89565165ec8ccfe115d2a1d71f9f786b750bdb7 277 B

12345678910111213
  1. var clone = require('clone');
  2. module.exports = function(options, defaults) {
  3. options = options || {};
  4. Object.keys(defaults).forEach(function(key) {
  5. if (typeof options[key] === 'undefined') {
  6. options[key] = clone(defaults[key]);
  7. }
  8. });
  9. return options;
  10. };