![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/ts.corals.io/frontend/node_modules/core-js/modules/ |
var $ = require('../internals/export'); var uncurryThis = require('../internals/function-uncurry-this'); var toIndexedObject = require('../internals/to-indexed-object'); var toObject = require('../internals/to-object'); var toString = require('../internals/to-string'); var lengthOfArrayLike = require('../internals/length-of-array-like'); var push = uncurryThis([].push); var join = uncurryThis([].join); // `String.raw` method // https://tc39.es/ecma262/#sec-string.raw $({ target: 'String', stat: true }, { raw: function raw(template) { var rawTemplate = toIndexedObject(toObject(template).raw); var literalSegments = lengthOfArrayLike(rawTemplate); var argumentsLength = arguments.length; var elements = []; var i = 0; while (literalSegments > i) { push(elements, toString(rawTemplate[i++])); if (i === literalSegments) return join(elements, ''); if (i < argumentsLength) push(elements, toString(arguments[i])); } } });