title: Remove double quotes from the strings present inside the arrays using javascript
body: <p>I have an array like this:
  array = ["apple","orange","pear"]
  I want to remove the double quotes from the beginning and end of each one of the strings in the array.
  array = [apple,orange,pear]
  I tried to loop through each element of the array and did a string replace like the following</p>
  
  <pre><code>    for (var i = 0; i &lt; array.length; i++) {
          array[i] = array[i].replace(/"/g, "");
      }
  </code></pre>
  
  <p>But it did not remove the double quotes from the beginning and end of the string.
  Any help would be appreciated.Thanks much.</p>