IR Framework

Array.contains Method

Checks an array for the existence of a given value.
object.contains (value)

Arguments

object
Required. Always the name of an Array object.


value
Required. The value to find in the array.



Return Value

The Array.contains method returns the following values:
If Array.contains returns
value is the value of an element in object true
value is not the value of an element in object false

Remarks

The following example illustrates the use of the Array.eq method.

//	Look for "A" in an array
var arrList = new Array("A", "B", "C");
Alert(arrList.contains("A"));		//	returns true


Requirements