UCE Docs / DValue::remove

Signature

void DValue::remove(String s)

Parameters

s : child key to erase
return value : none

Ensures the value is map-shaped and erases the named child. Removing the last child resets the next array index to zero.

Example

DValue u;
u["a"] = "1"; u["b"] = "2";
u.remove("a");
print("has a: ", u.has("a") ? "yes" : "no", ", has b: ", u.has("b") ? "yes" : "no", "\n");
Output
has a: no, has b: yes