Library
Module
Module type
Parameter
Class
Class type
Binding with JS values.
val string_of_js : t -> string
val string_to_js : string -> t
val int_of_js : t -> int
val int_to_js : int -> t
val bool_of_js : t -> bool
val bool_to_js : bool -> t
val float_of_js : t -> float
val float_to_js : float -> t
Wrap an OCaml function of known arity (>=1) into a JS function. Extra arguments are discarded and missing argument are filled with 'undefined'.
val empty_obj : unit -> t
val has_property : t -> string -> bool
val iter_properties : t -> (string -> unit) -> unit
Variant of Ojs.call
where the arguments are passed as an already built JS array.
Variant of Ojs.apply
where the arguments are passed as an already built JS array.
Variant of Ojs.new_obj
where the arguments are passed as an already built JS array.
val array_make : int -> t
val global : t
val null : t
val variable : string -> t
val type_of : t -> string
val delete : t -> string -> unit
val is_null : t -> bool
val obj_type : t -> string
Returns: "object Array
" "object Object
" "object Number
" "object String
" "object Null
" "object Boolean
"