module JSObjectUtils
Overview
This module provides common operations that every JavaScript entity can do
Direct including types
Defined in:
components/js_object_utils.crInstance Method Summary
-
#[](name : String)
Gets property
name
-
#[](index : UInt32)
Gets value at index
index
-
#[]=(name : String, value)
Set property
name
-
#[]=(index : UInt32, value)
Set a value at index
index
-
#delete(name : String)
Deletes property name of the object
-
#is_array?
Perform type checking
-
#is_bool?
Perform type checking
-
#is_instance_of?(class_name : String)
JavaScript's
instanceof
operator -
#is_null?
Perform type checking
-
#is_number?
Perform type checking
-
#is_string?
Perform type checking
-
#is_undefined?
Perform type checking
-
#to_b
Converts JavaScript value to Crystal's
Bool
-
#to_f64
Converts JavaScript value to Crystal's
Float64
-
#to_i32
Converts JavaScript value to Crystal's
Int32
-
#to_s
Converts JavaScript value to Crystal's
String