English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
Array.isArray(value)
let fruits = ["Apple", "Mango", "Banana", "Orange"]; Array.isArray(fruits);Test and see‹/›
The numbers in the table specify the first browser version that fully supports the isArray() method:
Method | |||||
isArray() | 5 | 4 | 10.5 | 5 | 9 |
Parameter | Description |
---|---|
value | Value to Check |
Return Value: | Returns if the value is an arraytrue;OtherwisefalseOtherwisefalse |
---|---|
JavaScript Version: | ECMAScript 5 |
Returns if the value is not an arrayfalse:
Array.isArray(110085);Test and see‹/›