I have the following code:
var names = ["John Chuck", "Micheal Novak", "john Owen", "Rick John"];
names = _.sortBy( names, function( name ){
return name;
}
It gives me a sorted list of names. Now along with this if I want to do a filering, is it possible?
Its like, filter on 'John', so that final list has only 3 names with 'John' in it.