> 
> **Possible Duplicate:**  
> 
> [array.contains(obj) in JavaScript](https://stackoverflow.com/questions/237104/array-containsobj-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](https://stackoverflow.com/questions/7571635/python-fastest-way-to-check-if-a-value-exist-in-a-array) (Python)

and this : [fastest way to detect if a value is in a set of values in Javascript](https://stackoverflow.com/questions/308191/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.