title: Remove duplicate cordinates from an array
body: <p>My array contains:-</p>
  
  <pre><code>(18.9992561589571, 72.83004879020154),(19.124614516591855, 72.87498710677028)
  </code></pre>
  
  <p>value, But for removing duplicate value i called 'removeDuplicates' function. But some times(In other cordinates it's works fine, But some time it's fails), So i dont know what's wrong with in it. Please help me.</p>
  
  <p>Here is removeDuplicates function:-</p>
  
  <pre><code>function removeDuplicates(arr) {
      var n, y, x, i, r;
      r = [];
      o: for (i = 0, n = arr.length; i &lt; n; i++) {
          for (x = 0, y = r.length; x &lt; y; x++) {
              if (r[x][0] == arr[i][0] &amp;&amp; r[x][1] == arr[i][1]) {
                  continue o;
              }
          }
          r.push(arr[i]);
      }
      return r;
  }
  </code></pre>
  
  <p>Input:-</p>
  
  <pre><code>array:-   (18.9992561589571, 72.83004879020154),(19.124614516591855, 72.87498710677028)
  </code></pre>
  
  <p>Expected Output:-</p>
  
  <pre><code>array:-   (18.9992561589571, 72.83004879020154),(19.124614516591855, 72.87498710677028)
  </code></pre>
  
  <p>Getting:-<br>
  <code>array:-   (18.9992561589571, 72.83004879020154)</code>  </p>