Strip words after @
<p>How do I strip out the words after the @? for example if string is</p>

<pre><code>12 @ 8.97 MB
</code></pre>

<p>then the output would become</p>

<pre><code>12
</code></pre>

<p>How to do this in javascript?</p>
