项目原始demo,不改动
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
 
 
 
 

10 行
304 B

  1. 'use strict';
  2. module.exports = (to, from) => {
  3. // TODO: use `Reflect.ownKeys()` when targeting Node.js 6
  4. for (const prop of Object.getOwnPropertyNames(from).concat(Object.getOwnPropertySymbols(from))) {
  5. Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
  6. }
  7. return to;
  8. };