cleanup, docs
This commit is contained in:
@@ -6,6 +6,7 @@ s : child key to test
|
||||
return value : true when the dereferenced value is map-shaped and contains the key
|
||||
|
||||
:see
|
||||
>types
|
||||
0_DValue
|
||||
2_DValue_key
|
||||
2_DValue_get_by_path
|
||||
@@ -13,6 +14,7 @@ return value : true when the dereferenced value is map-shaped and contains the k
|
||||
:content
|
||||
Checks for a child key without creating it. Returns false for scalars and missing keys.
|
||||
|
||||
```cpp
|
||||
if(context.props.has("title")) print(context.props["title"].to_string());
|
||||
```
|
||||
:example
|
||||
DValue user;
|
||||
user["name"] = "Ada";
|
||||
print(user.has("name") ? "yes\n" : "no\n");
|
||||
|
||||
Reference in New Issue
Block a user