IsArray

Determine whether a value is an array

Method Signature

IsArray(value=[any], number=[numeric])

Arguments

Argument
Type
Required
Description
Default

value

any

true

The value to test for array-ness.

number

numeric

false

If passed, the array dimension to test.

Examples

simple isArray example

Run Example

colorArray = [ 
	"yellow",
	"green",
	"red"
];
writeOutput( isArray( colorArray ) );

Result: yes

simple isArray example

Run Example

Result: true

isArray example with number

Run Example

Result: yes

isArray example with number

Run Example

Result: true

Additional Examples

Run Example

Last updated

Was this helpful?