Checking if an Array Contains a Value in JavaScript

How to determine if a JavaScript array contains a particular value, being a primitive or object.

How to determine if a JavaScript array contains a particular value, being a primitive or object.
Print Share Comment Cite Upload Translate
CITATION GOES HERE CITATION GOES HERE
Select a language: