How do I split an array by the characters in an array in javascript?
<p>I have an array of characters:</p>

<pre><code>var separators = ['a', 'b', 'c'];
</code></pre>

<p>I want to split a string by any of the characters in this array. For instance,</p>

<pre><code>var str = 'adbasscdabda';
</code></pre>

<p>should become</p>

<pre><code>var splitUpArray = ['d', 'ss', 'd', 'd'];
</code></pre>

<p>How do I achieve this? I have tried splitting the string by one character at a time and then concatenating the subarrays together, but this seems unwieldy.</p>
