1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/bower_components/emby-webcomponents/polyfills/objectassign.js

12 lines
572 B
JavaScript
Raw Normal View History

2018-10-23 01:05:09 +03:00
"function" != typeof Object.assign && function() {
Object.assign = function(target) {
"use strict";
if (void 0 === target || null === target) throw new TypeError("Cannot convert undefined or null to object");
for (var output = Object(target), index = 1; index < arguments.length; index++) {
var source = arguments[index];
if (void 0 !== source && null !== source)
for (var nextKey in source) source.hasOwnProperty(nextKey) && (output[nextKey] = source[nextKey])
}
return output
}
}();