/

HTML / CSS / JavaScript Tutorial

JavaScript Array method: isArray()

[this page | pdf | back links]

The isArray() method (when applied to the JavaScript Array object) returns true if an object is an array, otherwise false.

 

It has the following syntax with the following parameters. It returns a Boolean as above.

 

Array.isArray(obj)

 

Parameter

Required / Optional

Description

obj

Required

Item to search for

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Arrays


Desktop view | Switch to Mobile