UNPKG

proc_macro

Version:
29 lines 785 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Tagged template used to improve Token to JavaScript parsing. * @param tokens String tokens to parse. * @param values Tokens to parse. */ function quote(tokens) { var values = []; for (var _i = 1; _i < arguments.length; _i++) { values[_i - 1] = arguments[_i]; } var output = ""; tokens.forEach(function (token, i) { output += token; if (values[i]) { var value = values[i]; if (typeof value === 'string') { output += value; } else { output += value.toJavaScript(); } } }); return output; } exports.default = quote; //# sourceMappingURL=quote.js.map