How can I do something similar to the below
result = $.grep(data, function(e){ return e.firstname == name; });
with having name to be a regex expression, i.e. name starts with "Kevin*"
How can I do something similar to the below
result = $.grep(data, function(e){ return e.firstname == name; });
with having name to be a regex expression, i.e. name starts with "Kevin*"