nl_tokens: @ngdoc filter @name filter @kind function
pl_tokens: function filterFilter ( ) { return function ( array , expression , comparator , anyPropertyKey ) { if ( ! isArrayLike ( array ) ) { if ( array == null ) { return array ; } else { throw minErr ( 'filter' ) ( 'notarray' , 'Expected array but received: {0}' , array ) ; } } anyPropertyKey = anyPropertyKey || '$' ; var expressionType = getTypeForFilter ( expression ) ; var predicateFn ; var matchAgainstAnyProp ; switch ( expressionType ) { case 'function' : predicateFn = expression ; <mask> ; case 'boolean' : case 'null' : case 'number' : case 'string' : matchAgainstAnyProp = true ; // falls through case 'object' : predicateFn = createPredicateFn ( expression , comparator , anyPropertyKey , matchAgainstAnyProp ) ; break ; default : return array ; } return Array . prototype . filter . call ( array , predicateFn ) ; } ; }