source: trip-planner-front/node_modules/mimic-fn/index.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 300 bytes
Line 
1'use strict';
2
3const mimicFn = (to, from) => {
4 for (const prop of Reflect.ownKeys(from)) {
5 Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
6 }
7
8 return to;
9};
10
11module.exports = mimicFn;
12// TODO: Remove this for the next major release
13module.exports.default = mimicFn;
Note: See TracBrowser for help on using the repository browser.