title: How to check uniquness while pushing values into array using Angular JS?
body: <pre><code>  $scope.displayyears = [];
    $scope.Joinyear = function(display) {
      $scope.yeardisplay = display;       
      $scope.yeardisp = $scope.displayyears.push($scope.yeardisplay);
      $scope.displayyearss = uniq($scope.yeardisp)
    }
  </code></pre>
  
  <p>it throws error like "uniq is undefined"..How we check uniqueness??</p>