I have a string 'a' and want all results which have 'a' string array.
var searchquery = 'a';
var list = [temple,animal,game,match, add];
I want result = [animal,game,match,add]; all elements which have 'a' as a part of their name.how can I achieve that ?
regexwould be an overkill for this simple problem..