Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/object.assign/implementation.js
r0c6b92a r79a0317 4 4 var objectKeys = require('object-keys'); 5 5 var hasSymbols = require('has-symbols/shams')(); 6 var callBound = require('call-b ind/callBound');7 var toObject = Object;6 var callBound = require('call-bound'); 7 var $Object = require('es-object-atoms'); 8 8 var $push = callBound('Array.prototype.push'); 9 9 var $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable'); 10 var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;10 var originalGetSymbols = hasSymbols ? $Object.getOwnPropertySymbols : null; 11 11 12 12 // eslint-disable-next-line no-unused-vars 13 13 module.exports = function assign(target, source1) { 14 14 if (target == null) { throw new TypeError('target must be an object'); } 15 var to = toObject(target); // step 115 var to = $Object(target); // step 1 16 16 if (arguments.length === 1) { 17 17 return to; // step 2 18 18 } 19 19 for (var s = 1; s < arguments.length; ++s) { 20 var from = toObject(arguments[s]); // step 3.a.i20 var from = $Object(arguments[s]); // step 3.a.i 21 21 22 22 // step 3.a.ii: 23 23 var keys = objectKeys(from); 24 var getSymbols = hasSymbols && ( Object.getOwnPropertySymbols || originalGetSymbols);24 var getSymbols = hasSymbols && ($Object.getOwnPropertySymbols || originalGetSymbols); 25 25 if (getSymbols) { 26 26 var syms = getSymbols(from);
Note:
See TracChangeset
for help on using the changeset viewer.