Sha256: 4b0cb3384d76300beb6f55f3ad384139ba70c736b41f33b7f335a46dc5c12ec1
Contents?: true
Size: 690 Bytes
Versions: 62
Compression:
Stored size: 690 Bytes
Contents
/* */ var $def = require('./$.def'), toIndex = require('./$.to-index'), fromCharCode = String.fromCharCode, $fromCodePoint = String.fromCodePoint; $def($def.S + $def.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {fromCodePoint: function fromCodePoint(x) { var res = [], len = arguments.length, i = 0, code; while (len > i) { code = +arguments[i++]; if (toIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point'); res.push(code < 0x10000 ? fromCharCode(code) : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)); } return res.join(''); }});
Version data entries
62 entries across 31 versions & 1 rubygems