mirror of
https://gitea.com/actions/setup-python.git
synced 2024-11-23 02:29:35 +01:00
17 lines
351 B
JavaScript
17 lines
351 B
JavaScript
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;
|
|
};
|