_redefine-all.js 217 B

1234567
  1. var hide = require('./_hide');
  2. module.exports = function (target, src, safe) {
  3. for (var key in src) {
  4. if (safe && target[key]) target[key] = src[key];
  5. else hide(target, key, src[key]);
  6. } return target;
  7. };