title: angular js duplicate value push in to array
body: <p>I need to stop duplicate value insert to my array. my function is as below. its difficult to demonstrate whole process in the code. therefore pls check bellow function.</p>
  <pre><code>           $scope.showTab = [];
             $scope.goToTabContent = function(id){
                  $scope.currentId = id;
                  $scope.reportTab.push(id);    
              };
  currently I can insert duplicate value into 'report Tab' array.
  ex: [9,9].
  
   I need to push only unique values. how I do it. can u help me.
  </code></pre>