title: Javascript Object array parsing issue
body: <p>I have the following object in Javascript:</p>
  
  <pre><code>Array[11]
  0:"532"
  1:"text-warning"
  2:"51"
  3:"text-warning"
  4:"16"
  5:"muted"
  6:"35"
  7:"text-warning"
  8:"38"
  9:"text-warning"
  10:"106"
  
  Array[11]
  0:"533"
  1:"text-warning"
  2:"51"
  3:"text-warning"
  4:"16"
  5:"muted"
  6:"35"
  7:"text-success"
  8:"38"
  9:"text-warning"
  10:"106"
  
  Array[11]
  0:"534"
  1:"text-warning"
  2:"51"
  3:"text-warning"
  4:"16"
  5:"text-warning"
  6:"35"
  7:"text-success"
  8:"38"
  9:"text-warning"
  10:"106"
  </code></pre>
  
  <p>I would like to parse it and find if two value exist only once within this array.</p>
  
  <p>Example: "text-success" OR "muted" if EXIST ONCE return the array</p>
  
  <p>if it EXIST twice return null </p>
  
  <p>if TRUE return the corresponding id</p>
  
  <p>In the above example:</p>
  
  <p>1st Array: is TRUE</p>
  
  <pre><code>Array[11]
  0:"532"
  1:"muted"
  2:"35"
  </code></pre>
  
  <p>2nd one is FALSE because its exist twice</p>
  
  <p>3rd one: is also TRUE</p>
  
  <pre><code>Array[11]
  0:"534"
  1:"text-success"
  2:"38"
  </code></pre>
  
  <p>I have been trying this past few days was not successful</p>
  
  <p>I have the following JQUERY: but it only gets the Unique value but discard the others:</p>
  
  <p>I need the first id and the corresponding id as well:</p>
  
  <pre><code>Array[11]
  0:"534" -&gt; main id (needed)
  1:"text-success"
  2:"38" -&gt;  company id (needed)
  
  
  
  function singles( array) {
      for( var index = 0, single = []; index &lt; array.length; index++ ) { 
  
          if(array[index] == "text-success" || array[index] == "muted") {
              single.push(array[index]);
          }
      }
      return single;
  };
  </code></pre>
  
  <p>The result or the output which is required:</p>
  
  <pre><code>  Array[11]
      0:"532",
      1:"muted",
      2:"35",
  </code></pre>
  
  <p>The first value is the Main ID, 
  the 2nd value is the UNIQUE and 
  the 3rd value is the corresponding ID for the unique value.</p>