1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

LibJS: Add Value::is_array()

This commit is contained in:
Andreas Kling 2020-03-26 12:02:18 +01:00
parent f3c245fb96
commit d7073b9f3e
2 changed files with 6 additions and 0 deletions

View file

@ -51,6 +51,7 @@ public:
bool is_object() const { return m_type == Type::Object; }
bool is_boolean() const { return m_type == Type::Boolean; }
bool is_cell() const { return is_string() || is_object(); }
bool is_array() const;
Value()
: m_type(Type::Undefined)