Based on Subhaze's Function named "filterScore"... is just working fine if there is single value needs to be passed to KEY
... But my question is what if there are multiple values needs to be parsed?
like for example there is a key named brand_id
which is integer.. And I want to parse those data which have brand_id = 1 OR 3 OR 5 OR 7
(multiple) in JQuery RegExp
, Filter
, Match
... Please help me out with this guyz!!
How can I do this??
Would really appreciate if anyone can help me with this
As brands id are a list and not a pattern you can modify the filter function to accept
brand_id
as an array instead of aregex
. New filter function would beThen you can put all your brand id's in a array like this
Working Example