String values to Numeric Array
<p>What is the best way to convert the string values to an int array, e.g.:</p>

<pre><code>var s = '1,1,2';
</code></pre>

<p>to:</p>

<pre><code>var a = [1,1,2];
</code></pre>

<p>Thanks</p>
