PATH:
home
/
letacommog
/
crmleta
/
consumerportal
/
libraries
/
angularjs
/
filters
/
startsWith
/** * Created by Michael on 27/03/14. */ angular.module('angularUtils.filters.startsWith', []) .filter('startsWith', function() { return function(array, search) { var matches = []; for(var i = 0; i < array.length; i++) { if (array[i].indexOf(search) === 0 && search.length < array[i].length) { matches.push(array[i]); } } return matches; }; });
[+]
..
[-] startsWith.js
[edit]
[-] README.md
[edit]
[-] startsWith.spec.js
[edit]