0
1
Fork 0
hedera-web-mindshore/js/vn/polyfills.js

30 lines
496 B
JavaScript

/**
* Browser polyfills.
*/
if (!console.warn)
console.warn = console.log;
if (typeof Object.assign != 'function')
{
Object.assign = function (target)
{
if (target == null)
throw new TypeError ('Cannot convert undefined or null to object');
var to = Object (target);
for (var i = 1; i < arguments.length; i++)
{
var source = arguments[i];
if (source)
for (var key in source)
if (source.hasOwnProperty (key))
to[key] = nextSource[key];
}
return to;
};
}