Your IP : 13.59.217.1


Current Path : /opt/alt/alt-nodejs12/root/lib/node_modules/npm/node_modules.bundled/es-abstract/helpers/
Upload File :
Current File : //opt/alt/alt-nodejs12/root/lib/node_modules/npm/node_modules.bundled/es-abstract/helpers/assign.js

var bind = require('function-bind');
var has = bind.call(Function.call, Object.prototype.hasOwnProperty);

var $assign = Object.assign;

module.exports = function assign(target, source) {
	if ($assign) {
		return $assign(target, source);
	}

	for (var key in source) {
		if (has(source, key)) {
			target[key] = source[key];
		}
	}
	return target;
};

?>