title: How do I split a string, breaking at a particular character?
body: <p>I have this string</p>
  
  <pre><code>'john smith~123 Street~Apt 4~New York~NY~12345'
  </code></pre>
  
  <p>Using JavaScript, what is the fastest way to parse this into</p>
  
  <pre><code>var name = "john smith";
  var street= "123 Street";
  //etc...
  </code></pre>