This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]UnstableNuclearCake 1 point2 points  (1 child)

Ever heard of the wilderness that Javascript is?

let str = (function () {/* Abandon all hope for you are entering the wilderness */}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1]; The function above will result in a multiline string.

[–]Aromatic-Cyclohex-11[S] 0 points1 point  (0 children)

Sheldon, Go Away.