isarray

This function determines whether the provided value is of type list or tuple or not. The functions islist and istuple can be used to check if the array is mutable.

This function does not generate an event.

Function

isarray(value)

Arguments

Argument Type Description
value any (required) The value to be tested.

Return value

Returns true if the value passed is an array, else it returns false.

Example

This code shows some return values for isarray():

[
    isarray( [] ),
    isarray( tmp = [['nested']] ),
    isarray( tmp[0] ),
];

Return value in JSON format

[
    true,
    true,
    true
]