English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

The JavaScript Array isArray() method

 JavaScript Array Object

The JavaScript Array isArray() method determines whether the passed value is an array.

This method returns true if the value is an arraytrue,Otherwise returnsfalse.

Syntax:

Array.isArray(value)
let fruits = ["Apple", "Mango", "Banana", "Orange"];
Array.isArray(fruits);
Test and see‹/›

Browser Compatibility

The numbers in the table specify the first browser version that fully supports the isArray() method:

Method
isArray()5410.559

Parameter Value

ParameterDescription
valueValue to Check

Technical Details

Return Value:Returns if the value is an arraytrue;OtherwisefalseOtherwisefalse
JavaScript Version:ECMAScript 5

More Examples

Returns if the value is not an arrayfalse:

Array.isArray(110085);
Test and see‹/›

 JavaScript Array Object