Remove comments from string with JavaScript using JavaScript
<p>There is some string (for example, 's'):</p>

<pre><code>import 'lodash';
// TODO import jquery
//import 'jquery';

/*
Some very important comment
*/
</code></pre>

<p>How can I remove all comments from 's' string? Should I use some Regexp for it? I don't know.</p>