Sha256: d4fb40760ae5403f7cded05263aa38bcccf420b4500e90378c63ec8cb020ff1d

Contents?: true

Size: 519 Bytes

Versions: 64

Compression:

Stored size: 519 Bytes

Contents

var $export = require('./_export');
var toIObject = require('./_to-iobject');
var toLength = require('./_to-length');

$export($export.S, 'String', {
  // 21.1.2.4 String.raw(callSite, ...substitutions)
  raw: function raw(callSite) {
    var tpl = toIObject(callSite.raw);
    var len = toLength(tpl.length);
    var aLen = arguments.length;
    var res = [];
    var i = 0;
    while (len > i) {
      res.push(String(tpl[i++]));
      if (i < aLen) res.push(String(arguments[i]));
    } return res.join('');
  }
});

Version data entries

64 entries across 29 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/core-js/library/modules/es6.string.raw.js
immosquare-cleaner-0.1.51 node_modules/core-js/modules/es6.string.raw.js
immosquare-cleaner-0.1.50 node_modules/core-js/modules/es6.string.raw.js
immosquare-cleaner-0.1.50 node_modules/core-js/library/modules/es6.string.raw.js
immosquare-cleaner-0.1.49 node_modules/core-js/library/modules/es6.string.raw.js
immosquare-cleaner-0.1.49 node_modules/core-js/modules/es6.string.raw.js
immosquare-cleaner-0.1.48 node_modules/core-js/library/modules/es6.string.raw.js
immosquare-cleaner-0.1.48 node_modules/core-js/modules/es6.string.raw.js
immosquare-cleaner-0.1.47 node_modules/core-js/library/modules/es6.string.raw.js
immosquare-cleaner-0.1.47 node_modules/core-js/modules/es6.string.raw.js
immosquare-cleaner-0.1.46 node_modules/core-js/library/modules/es6.string.raw.js
immosquare-cleaner-0.1.46 node_modules/core-js/modules/es6.string.raw.js
immosquare-cleaner-0.1.45 node_modules/core-js/library/modules/es6.string.raw.js
immosquare-cleaner-0.1.45 node_modules/core-js/modules/es6.string.raw.js
immosquare-cleaner-0.1.44 node_modules/core-js/library/modules/es6.string.raw.js
immosquare-cleaner-0.1.44 node_modules/core-js/modules/es6.string.raw.js
immosquare-cleaner-0.1.43 node_modules/core-js/library/modules/es6.string.raw.js
immosquare-cleaner-0.1.43 node_modules/core-js/modules/es6.string.raw.js
immosquare-cleaner-0.1.42 node_modules/core-js/library/modules/es6.string.raw.js
immosquare-cleaner-0.1.42 node_modules/core-js/modules/es6.string.raw.js