Function to check whether an object is an array.
ar array = new Array("a", "b", "c"); if(is_array(array)) { //Do something if the variable is an array }
Parameter | Data type | Required | Description |
---|---|---|---|
object | all | Yes | The object to check |
Value | Meaning |
---|---|
true | The object is an array |
false | The object is not an array |