Sha256: fd9eea7f7d28130a77eb1bd8cf58cb1834d0de5820add96995923195635ca4ed

Contents?: true

Size: 865 Bytes

Versions: 64

Compression:

Stored size: 865 Bytes

Contents

var $export = require('./_export');
var toAbsoluteIndex = require('./_to-absolute-index');
var fromCharCode = String.fromCharCode;
var $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 = [];
    var aLen = arguments.length;
    var i = 0;
    var code;
    while (aLen > i) {
      code = +arguments[i++];
      if (toAbsoluteIndex(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

64 entries across 29 versions & 8 rubygems

Version Path
optimacms-0.4.3 spec/dummy/node_modules/core-js/modules/es6.string.from-code-point.js
optimacms-0.4.3 spec/dummy/node_modules/core-js/library/modules/es6.string.from-code-point.js
optimacms-0.4.2 spec/dummy/node_modules/core-js/library/modules/es6.string.from-code-point.js
optimacms-0.4.2 spec/dummy/node_modules/core-js/modules/es6.string.from-code-point.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/core-js/modules/es6.string.from-code-point.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/core-js/library/modules/es6.string.from-code-point.js
lux_assets-0.2.11 ./node_modules/core-js/modules/es6.string.from-code-point.js
lux_assets-0.2.11 ./node_modules/core-js/library/modules/es6.string.from-code-point.js
lux_assets-0.2.9 ./node_modules/core-js/modules/es6.string.from-code-point.js
lux_assets-0.2.9 ./node_modules/core-js/library/modules/es6.string.from-code-point.js
lux_assets-0.2.4 ./node_modules/core-js/library/modules/es6.string.from-code-point.js
lux_assets-0.2.4 ./node_modules/core-js/modules/es6.string.from-code-point.js
lux_assets-0.2.2 ./node_modules/core-js/library/modules/es6.string.from-code-point.js
lux_assets-0.2.2 ./node_modules/core-js/modules/es6.string.from-code-point.js
lux_assets-0.2.1 ./node_modules/core-js/modules/es6.string.from-code-point.js
lux_assets-0.2.1 ./node_modules/core-js/library/modules/es6.string.from-code-point.js
locomotivecms-3.4.0 app/javascript/node_modules/core-js/modules/es6.string.from-code-point.js
locomotivecms-3.4.0 app/javascript/node_modules/core-js/library/modules/es6.string.from-code-point.js
cortex-0.1.3 spec/dummy/node_modules/core-js/library/modules/es6.string.from-code-point.js
cortex-0.1.3 spec/dummy/node_modules/core-js/modules/es6.string.from-code-point.js