title: Javascript split string by multiple delimiters for logical expression
body: <p>I want to split string by logical operators || and &amp;&amp;.
  For example true &amp;&amp; false || true = true,false,true in array...
  I tried with creating a temporary string where I replaced all ||s with &amp;&amp;s and then split by &amp;&amp;, but it doesnt suit my needs, so I am looking for better solution, maybe with regular expression or something. Also, character class in regex doesnt work, because it matches just single character, so if I use [&amp;&amp;||] it doesnt work.</p>