polyfills.String.fromCodePoint.min.js Maven / Gradle / Ivy
The newest version!
!function(){var r=String.fromCharCode,e=Math.floor,n=function(){var n,t,o=[],i=-1,a=arguments.length;if(!a)return"";for(var f="";++i1114111||e(l)!=l)throw RangeError("Invalid code point: "+l);l<=65535?o.push(l):(l-=65536,n=55296+(l>>10),t=l%1024+56320,o.push(n,t)),(i+1==a||o.length>16384)&&(f+=r.apply(null,o),o.length=0)}return f};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}();