vendor/assets/javascripts/lib/object-assign-pollyfill.js in grape-swagger-ui-0.1.1 vs vendor/assets/javascripts/lib/object-assign-pollyfill.js in grape-swagger-ui-2.2.8
- old
+ new
@@ -1,23 +2 @@
-if (typeof Object.assign != 'function') {
- (function () {
- Object.assign = function (target) {
- 'use strict';
- if (target === undefined || target === null) {
- throw new TypeError('Cannot convert undefined or null to object');
- }
-
- var output = Object(target);
- for (var index = 1; index < arguments.length; index++) {
- var source = arguments[index];
- if (source !== undefined && source !== null) {
- for (var nextKey in source) {
- if (Object.prototype.hasOwnProperty.call(source, nextKey)) {
- output[nextKey] = source[nextKey];
- }
- }
- }
- }
- return output;
- };
- })();
-}
+"function"!=typeof Object.assign&&!function(){Object.assign=function(n){"use strict";if(void 0===n||null===n)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),o=1;o<arguments.length;o++){var r=arguments[o];if(void 0!==r&&null!==r)for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}}();
\ No newline at end of file