title: javascript: split an array into subarrays by a given seperator
body: <p>i want to split an array into a list of subarray by a/or more given seperator/s.</p>
  
  <p>something like this:</p>
  
  <pre><code>var myArray = [null, 5, 'whazzup?', object, '15', 34.6];
  var mySeperators = [null, '15'];
  
  splitArray(myArray, mySeperators)
  </code></pre>
  
  <p>should result in that:</p>
  
  <pre><code>[[], [5, 'whazzup?', object], [34.6]]
  </code></pre>
  
  <p>the source array can contain the seperators multiple times. how to accomplish this?</p>
  
  <p>when it makes solution easier, i'm using mootools as base library. </p>