How to get numbers in a string separated with commas and save each of them in an Array in Javascript : <p>I have a string of <code>ID's</code> wherein they're being separated with commas.
For example, the string is:
<code>"15,14,12,13"</code></p>

<p>How can I extract the numbers/id's from this string and save each of them in a <code>JSON</code> or array to be something like this</p>

<pre><code>Array: {
   15,
   14,
   12,
   13
}
</code></pre>

<p>I don't know how it's done using <code>regex</code> or string manipulation. Please advice.</p>
