mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 21:00:06 +00:00
LibJS: Add Value::is_array()
This commit is contained in:
@@ -33,6 +33,11 @@
|
||||
|
||||
namespace JS {
|
||||
|
||||
bool Value::is_array() const
|
||||
{
|
||||
return is_object() && as_object()->is_array();
|
||||
}
|
||||
|
||||
String Value::to_string() const
|
||||
{
|
||||
if (is_boolean())
|
||||
|
||||
Reference in New Issue
Block a user