filter JSON data with "AND" operator using jquery
Hi,
For example I have json data like this
firstName,lastName,instrument,born
John,Lennon,guitar,1940
Paul,McCartney,bass,1942
Jerry,Starr,drums,1940
George,Harrison,guitar,1943
I need to filter this data using "and" operator
For example, I can filter this data using jLinq library like this
- jLinq.from(dataJson)
- .startsWith("firstName", "J")
- .andEndsWith("y")
- .select();
and I will get this result back
Jerry,Starr,drums,1940
However, because this library too large, I decide to try to not using this library..
is it possible doing the same thing (filter with "and" operator) using jQuery?
Many thanks