mirror of
https://github.com/actions/labeler
synced 2026-05-10 22:01:01 +02:00
build
This commit is contained in:
11
node_modules/es-abstract/helpers/assign.js
generated
vendored
11
node_modules/es-abstract/helpers/assign.js
generated
vendored
@@ -1,15 +1,20 @@
|
||||
var bind = require('function-bind');
|
||||
var has = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
||||
'use strict';
|
||||
|
||||
var $assign = Object.assign;
|
||||
var GetIntrinsic = require('../GetIntrinsic');
|
||||
|
||||
var has = require('has');
|
||||
|
||||
var $assign = GetIntrinsic('%Object%').assign;
|
||||
|
||||
module.exports = function assign(target, source) {
|
||||
if ($assign) {
|
||||
return $assign(target, source);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (var key in source) {
|
||||
if (has(source, key)) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
target[key] = source[key];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user