AlkantarClanX12

Your IP : 3.14.251.103


Current Path : /proc/self/root/opt/alt/alt-nodejs10/root/lib/node_modules/npm/node_modules/defaults/
Upload File :
Current File : //proc/self/root/opt/alt/alt-nodejs10/root/lib/node_modules/npm/node_modules/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;
};