title: Multidimensional array separators in Javascript
body: <p>I've been searching for a more concise way to represent multidimensional arrays in Javascript, so I'd like to find a way to separate an array using multiple separators, along with Javascript's built-in <code>string.split(separator)</code> method.</p>
  
  <p>For example, the string <code>"what, am, I; doing, here, now"</code> would become <code>[["what", "am", "I"],["doing", "here", "now"]]</code>.</p>
  
  <p>Is there any concise way to implement a function that does this?</p>
  
  <pre><code>var theString = "what, am, I; doing, here, now";
  var theArray = getArray(theString, [",", ";"]); //this should return [["what", "am", "I"],["doing", "here", "now"]].
  
  function getArray(theString, separators){
      //convert a string to a multidimensional array, given a list of separators
  }
  </code></pre>