UCE Docs / DValue::is_array

Signature

bool DValue::is_array() const

Parameters

return value : true when the dereferenced value is map-shaped

Returns true when the value's current type is M, the map/list container type. It does not require contiguous numeric keys; use is_list() for that.

Example

DValue user;
user["name"] = "Ada";
print(user.is_array() ? "array\n" : "scalar\n");
Output
array