Sha256: d4fb40760ae5403f7cded05263aa38bcccf420b4500e90378c63ec8cb020ff1d
Contents?: true
Size: 519 Bytes
Versions: 66
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
66 entries across 30 versions & 8 rubygems