class

JSCPrimative

Inherits Invokable / JSObjectUtils / Reference / Object

A JSCPrimative is a wrapper of 5 JavaScript primative types, includes:

  1. undefined
  2. null
  3. boolean
  4. number
  5. string

Constructors

new(value : Int)

Initializes a new JavaScript number from a Crystal's Int

Source
new(value : Float64)

Initializes a new JavaScript number from a Crystal's Float64

Source
new(value : String)

Initializes a new JavaScript string from a Crystal's String

Source
new(value : Nil)

Initializes a new JavaScript null from a Crystal's Nil

Source
new(value : Bool)

Initializes a new JavaScript boolean from a Crystal's Bool

Source
new

Initializes a new JavaScript undefined

Source

Instance methods

finalize
Source