title: splitting string into an object JavaScript
body: <p>I have this String <code>result:tie,player:paper,computer:paper</code></p>
  
  <p>I guess you could split into arrays and make a object and parse it an object, however this does not seem to be a good approach.</p>
  
  <p>How would I get this String as a object?</p>
  
  <pre><code>let string = "result:tie,player:paper,computer:paper"
  </code></pre>