title: convert array with strings of minute format to seconds format
body: <pre class="lang-js prettyprint-override"><code>[&quot;4&quot;, &quot;5.67&quot;, &quot;1:45.67&quot;, &quot;4:43.45&quot;]
  </code></pre>
  <p>I have this string array and i want to convert all of the strings to numbers with seconds format so it will become something like this</p>
  <pre class="lang-js prettyprint-override"><code>[4, 5.67, 105.67, 283.45]
  </code></pre>
  <p>how can i do it?</p>
  <pre class="lang-js prettyprint-override"><code>function hmsToSecondsOnly(str) {
      var p = str.split(':'),
          s = 0, m = 1;
  
      while (p.length &gt; 0) {
          s += m * parseInt(p.pop(), 10);
          m *= 60;
      }
  
      return s;
  }
  </code></pre>
  <p>I found this but it seems to only work in MM:SS format like 1:40 but i want convert strings in x:xx.xx format</p>