Lets say I have this array
[{k:2, v:"Stack"}, {k:5, v:"Over"}, , {k:9, v:"flow"}]
How do I select elements like all keys with the value <=5? or the first 2 elements or all values when on odd numbered key (to spell Overflow)
I don't want to use a for/foreach loop. I'm looking for something like jquery where I can apply something to everything it matches. Kind of like how this applies newclassproperty to all a inside of a dom with the group class
$('.group a').addClass('newclassproperty')