4 ms·
That's rather trivial with Deno.run, here I just wrote a gist for that out of curiosity: https://gist.github.com/zandaqo/93004fb265146a95aadb28ec851a1d72 https:
by maga 5y ago
That's rather trivial with Deno.run, here I just wrote a gist for that out of curiosity: https://gist.github.com/zandaqo/93004fb265146a95aadb28ec851a1d72 https://gist.github.com/zandaqo/93004fb265146a95aadb28ec851a...
- japanuspus 5y agoThank you for posting -- I had never heard of tagged template literals! Reading the docs [1], it appears there is a `raw` property which might make this even simpler? [1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#raw_strings https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- maga 5y ago`raw` would allow us to pass the input as is without escaping it using JS rules, but otherwise the code would remain the same, we still have to "stitch" both arrays together with the loops.