module

JSObjectUtils

This module provides common operations that every JavaScript entity can do

Instance methods

[](name : String)

Gets property name

Source
[](index : UInt32)

Gets value at index index

Source
[]=(name : String, value)

Set property name

Source
[]=(index : UInt32, value)

Set a value at index index

Source
delete(name : String)

Deletes property name of the object

Source
is_array?

Perform type checking

Source
is_bool?

Perform type checking

Source
is_instance_of?(class_name : String)

JavaScript's instanceof operator

Source
is_null?

Perform type checking

Source
is_number?

Perform type checking

Source
is_string?

Perform type checking

Source
is_undefined?

Perform type checking

Source
to_b

Converts JavaScript value to Crystal's Bool

Source
to_f64

Converts JavaScript value to Crystal's Float64

Source
to_i32

Converts JavaScript value to Crystal's Int32

Source
to_s

Converts JavaScript value to Crystal's String

Source