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