mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
LibJS: Add Value::is_array()
This commit is contained in:
parent
f3c245fb96
commit
d7073b9f3e
2 changed files with 6 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue