AlkantarClanX12

Your IP : 18.224.65.198


Current Path : /opt/alt/alt-nodejs12/root/lib/node_modules/npm/node_modules.bundled/defaults/
Upload File :
Current File : //opt/alt/alt-nodejs12/root/lib/node_modules/npm/node_modules.bundled/defaults/index.js

var clone = require('clone');

module.exports = function(options, defaults) {
  options = options || {};

  Object.keys(defaults).forEach(function(key) {
    if (typeof options[key] === 'undefined') {
      options[key] = clone(defaults[key]);
    }
  });

  return options;
};