title: How to convert time (hh:mm) to decimal form with momentjs
body: <p>what is the best way to convert Hours  Minutes to Decimal Time with momentjs</p>
  
  <p>let say i have 1:30 min and i want to have 1.5 after the conversion</p>
  
  <p>here is what i have tried </p>
  
  <pre><code>console.log(travelTime().split(':')[0]);   return 1
  console.log(travelTime().split(':')[1]);   return 30  then / 30
  </code></pre>
  
  <p>where travelTime() == "1:30"</p>