mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +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: https://github.com/SerenityOS/serenity/commit/9c434d8c6a3
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,11 @@ public:
|
|||
return (*it).value;
|
||||
}
|
||||
|
||||
bool has(const String& key) const
|
||||
{
|
||||
return m_members.contains(key);
|
||||
}
|
||||
|
||||
void set(const String& key, JsonValue&& value)
|
||||
{
|
||||
m_members.set(key, move(value));
|
||||
|
|
Loading…
Reference in a new issue