13 lines
No EOL
252 B
JavaScript
13 lines
No EOL
252 B
JavaScript
function _taggedTemplateLiteral(strings, raw) {
|
|
if (!raw) {
|
|
raw = strings.slice(0);
|
|
}
|
|
|
|
return Object.freeze(Object.defineProperties(strings, {
|
|
raw: {
|
|
value: Object.freeze(raw)
|
|
}
|
|
}));
|
|
}
|
|
|
|
module.exports = _taggedTemplateLiteral; |