title: The function contains in angularJs
body: <p>I am trying to do this:</p>
  
  <pre><code>for(i=0;i&lt;$scope.users.length;i++){
      var name= $scope.users[i].name;
  
      if(!(name.contains('ext'))){
          $scope.users.splice(i,1);
      }
  }
  </code></pre>
  
  <p>But I have an error about function contains.
  I tried match funtion too and I had the same problem.
  Somebody can help me?</p>