title: Why do javascript string split method support an array as separator?
body: <p>From the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split" rel="nofollow">MDN</a> the split method separator is treated as a String or a RegExp. But 'asd'.split(['s']) correctly returns ['a', 'd'].</p>