您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.js 300B

12345678910111213
  1. 'use strict';
  2. const mimicFn = (to, from) => {
  3. for (const prop of Reflect.ownKeys(from)) {
  4. Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
  5. }
  6. return to;
  7. };
  8. module.exports = mimicFn;
  9. // TODO: Remove this for the next major release
  10. module.exports.default = mimicFn;