function createFilterFor(query) {
        var lowercaseQuery = angular.lowercase(query);

        return function filterFn(list) {
            return angular.lowercase(list.name).indexOf(lowercaseQuery) === 0;
        };
    }
/**
     * Create filter function for a query string
     */
Create filter function for a query string
Create filter function for a query string
function createFilterFor(query) {
        var lowercaseQuery = angular.lowercase(query);
        return function filterFn(list) {
            return angular.lowercase(list.name).indexOf(lowercaseQuery) === 0;
        };
    }
function createFilterFor ( query ) { var lowercaseQuery = angular . lowercase ( query ) ; return function filterFn ( list ) { return angular . lowercase ( list . name ) . indexOf ( lowercaseQuery ) === 0 ; } ; }
Create filter function for a query string
Create filter function for a query string