isArray

Modified on Mon, 21 Aug 2023

Description

Use this function to check if a value is classified as an Array object.

Syntax

isArray(value)

Returns

Return ValueDescription
True/FalseReturns true if the given value is an array and false otherwise.

Sample

ExampleResultDescription
isArray([1, 2, 3])trueReturns true if the given value is an array, in this case, it returns true because [1, 2, 3] is an array.
isArray("Hello, world!")falseReturns false if the given value is not an array, in this case, it returns false because "Hello, world!" is not an array.

To view all the Language functions, click here.