LocalCDN-Firefox-Chrome-Brave/resources/object-assign/4.1.1/object-assign.min.jsm

3 lines
1.2 KiB
JavaScript

!function(a,b){typeof exports==='object'&&typeof module!=='undefined'?module.exports=b():typeof define==='function'&&define.amd?define(b):(a.ObjectAssign=b())}(this,(function(){'use strict';var a=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function d(a){if(a===null||a===undefined){throw new TypeError('Object.assign cannot be called with null or undefined')}return Object(a)}function e(){try{if(!Object.assign){return !1}var a=new String('abc');a[5]='de';if(Object.getOwnPropertyNames(a)[0]==='5'){return !1}var b={};for(var c=0;c<10;c++)b['_'+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(b).map(function(a){return b[a]});if(d.join('')!=='0123456789'){return !1}var e={};'abcdefghijklmnopqrst'.split('').forEach(function(a){e[a]=a});if(Object.keys(Object.assign({},e)).join('')!=='abcdefghijklmnopqrst'){return !1}return !0}catch(a){return !1}}var f=e()?Object.assign:function(e,f){var g,h=d(e),i;for(var j=1;j<arguments.length;j++){g=Object(arguments[j]);for(var k in g)b.call(g,k)&&(h[k]=g[k]);if(a){i=a(g);for(var l=0;l<i.length;l++)c.call(g,i[l])&&(h[i[l]]=g[i[l]])}}return h};return f}))
//# sourceMappingURL=object-assign.min.js.map