title: How to remove quotes from an array in javascript?
body: <p>Here I have an array.It is an array of time.</p>
  
  <pre><code>time = ["19.00","19.01","19.34","19.37","20.05","20.12","10.54","11.12"];
  </code></pre>
  
  <p>I wanted to remove all these quotes.</p>
  
  <pre><code>time = [19.00,19.01,19.34,19.37,20.05,20.12,10.54,11.12];
  </code></pre>
  
  <p>Actually, I'm getting all these data from Redis as an array.</p>
  
  <p>And passing data to javascript.</p>
  
  <pre><code>var httptime1 = '&lt;?php echo json_encode($httptime1); ?&gt;';
  </code></pre>
  
  <p>i used to remove quotes this way,</p>
  
  <pre><code>for (var i = 0; i &lt; time1.length; i++)
  {
      time1[i] = time1[i].replace(/"/g, " ");
  }
  </code></pre>
  
  <p>But not working.</p>
  
  <p>Can you suggest me, which is the best way?</p>