mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
JsonObject: Add JsonObject::has(key)
This commit is contained in:
parent
b74a433809
commit
9c434d8c6a
Notes:
sideshowbarker
2024-07-19 11:35:56 +09:00
Author: https://github.com/awesomekling
Commit: 9c434d8c6a
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,11 @@ public:
|
||||||
return (*it).value;
|
return (*it).value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool has(const String& key) const
|
||||||
|
{
|
||||||
|
return m_members.contains(key);
|
||||||
|
}
|
||||||
|
|
||||||
void set(const String& key, JsonValue&& value)
|
void set(const String& key, JsonValue&& value)
|
||||||
{
|
{
|
||||||
m_members.set(key, move(value));
|
m_members.set(key, move(value));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue