flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
22
BACK_BACK/node_modules/es-abstract/helpers/assign.js
generated
vendored
Executable file
22
BACK_BACK/node_modules/es-abstract/helpers/assign.js
generated
vendored
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var hasOwn = require('hasown');
|
||||
|
||||
var $assign = GetIntrinsic('%Object.assign%', true);
|
||||
|
||||
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 (hasOwn(source, key)) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
target[key] = source[key];
|
||||
}
|
||||
}
|
||||
return target;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue