Ohm-Management - Projektarbeit B-ME
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.

index.js 304B

123456789
  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. };