All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.mimic-fn.index.js Maven / Gradle / Ivy

The newest version!
'use strict';
module.exports = (to, from) => {
	// TODO: use `Reflect.ownKeys()` when targeting Node.js 6
	for (const prop of Object.getOwnPropertyNames(from).concat(Object.getOwnPropertySymbols(from))) {
		Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
	}
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy