summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/whoops/node_modules/mimic-fn/index.js
blob: f2c213875937cbfe30619be337b4756d78023f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';

const mimicFn = (to, from) => {
	for (const prop of Reflect.ownKeys(from)) {
		Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
	}

	return to;
};

module.exports = mimicFn;
module.exports.default = mimicFn;