This function determines whether the provided value is a list or not.
This function does not generate a change.
is_list(value)
Argument | Type | Description |
---|---|---|
value | any (required) | The value to be tested. |
Returns true
if the given value is a list
, else it returns false
.
This code shows some return values for is_list():
[
is_list( [] ),
is_list( tmp = [['nested']] ),
is_list( tmp[0] ),
];
Return value in JSON format
[
true,
true,
false
]