is_array()

Function to check whether an object is an array.

The functions is_array() is located in the file array.jsxinc.

Usage

var array = new Array("a", "b", "c");
if(is_array(array))
   //Do something if the variable is an array

Parameter

Parameter Data type Required Description
object All The object you want to check.

Return values

Value Meaning
true The object is an array.
false The object is not an array.