Sha256: 35409f998e425fb129a10eeddeafdf7001438214464d9bfcaae8434962f91d18
Contents?: true
Size: 848 Bytes
Versions: 320
Compression:
Stored size: 848 Bytes
Contents
var $export = require('./_export') , toIndex = require('./_to-index') , fromCharCode = String.fromCharCode , $fromCodePoint = String.fromCodePoint; // length should be 1, old FF problem $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', { // 21.1.2.2 String.fromCodePoint(...codePoints) fromCodePoint: function fromCodePoint(x){ // eslint-disable-line no-unused-vars var res = [] , aLen = arguments.length , i = 0 , code; while(aLen > 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
320 entries across 8 versions & 3 rubygems