title: Filter array of mixed values to different array
body: <p>i have array,</p>
  <pre><code>arr = [1, 2, &quot;a&quot;, &quot;a1&quot;, &quot;3&quot;, &quot;qw7&quot;, &quot;b&quot;, &quot;4&quot;, &quot;xyz&quot;, &quot;abcd&quot;]
  </code></pre>
  <p>i like to filter it to according to its content iterate over each find out whether its alphabet character or number, filter out alphanumeric values to separate array, numeric to separate and alphabets to separate,</p>
  <pre><code>out1 = [1, 2, 3, 4]
  out2= [&quot;a&quot;, &quot;b&quot;, &quot;x&quot;, &quot;y&quot;, &quot;z&quot;, &quot;c&quot;, &quot;d&quot;]
  out3= [&quot;a1&quot;, &quot;qw7&quot;]
  </code></pre>
  <p>i can do for <code>out1</code>, cant for <code>out2</code> and <code>out3</code></p>
  <pre><code>out1 = arr.filter(Number) // to get required output, [1, 2, 3, 4]
  </code></pre>
  <p>i tried using,</p>
  <pre><code>arr.map( i=&gt;{
     if (i typeof string){
        out2.push(i);
     }
  })
  </code></pre>