web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
462 B

  1. function _defaults(obj, defaults) {
  2. var keys = Object.getOwnPropertyNames(defaults);
  3. for (var i = 0; i < keys.length; i++) {
  4. var key = keys[i];
  5. var value = Object.getOwnPropertyDescriptor(defaults, key);
  6. if (value && value.configurable && obj[key] === undefined) {
  7. Object.defineProperty(obj, key, value);
  8. }
  9. }
  10. return obj;
  11. }
  12. module.exports = _defaults;
  13. module.exports["default"] = module.exports, module.exports.__esModule = true;