title: Jquery input checkbox checked value to array cleaner output
body: <p>I've got a table, each with checkbox, that if checked, remove the data of the checked, with a check all box on the top (just like phpmyadmin for example).</p>
  
  <p>var_dump the checked result gave me this:</p>
  
  <pre><code>array(10) {
    [0]=&gt;
    string(2) "on"
    [1]=&gt;
    string(8) "vVZW9qrG"
    [2]=&gt;
    string(8) "8N5Go5J2"
    [3]=&gt;
    string(8) "mNY6nYXK"
    [4]=&gt;
    string(8) "8w5DzY0M"
    [5]=&gt;
    string(8) "KJZNVZxA"
    [6]=&gt;
    string(8) "1J5REq0v"
    [7]=&gt;
    string(8) "wEYejqQV"
    [8]=&gt;
    string(8) "Nmqw7qMR"
    [9]=&gt;
    string(8) "ea5MXqGl"
  }
  </code></pre>
  
  <p>which is almost what I want, except that on key <code>0</code> there is <code>on</code> value, I'm guessing it's from the check all box. How to remove that <code>on</code> value? (Normally I would just <code>splice</code> that value, but I need a cleaner one, because there will be a case where check all box won't be checked)</p>
  
  <p>This is how I got the checked value (in CS):</p>
  
  <pre><code>val = $('#categoryList input:checkbox:checked').map(-&gt;
      $(this).val()
  ).get()
  </code></pre>
  
  <p><code>console.log(val)</code> gave me the above result</p>