Possible Duplicate:
array.contains(obj) in JavaScript
Let's say I have an array = [0,8,5]
What is the fastest way to know if 8 is inside this one.. for example:
if(array.contain(8)){
// return true
}
I found this : Fastest way to check if a value exist in a list (Python)
and this : fastest way to detect if a value is in a set of values in Javascript
But this don't answer to my question. Thank you.