Is there any not loop-based approach in JavaScript or JQuery that can check presence of some VALUE from object's properties. I mean here if I have
obj = { prop1:val, prop2:val2 }
is that possible with maybe one statement check is val2 presence among values of obj ?
UPDATE 1: The loop here is not the key! I can use loop if it is wrapped in some JQuery predefined function!
UPDATE 2: Writing a hand-made function is not so elegant, I think. I would like to find some library based solution for such a common and usual problem.