Page
Library
Module
Module type
Parameter
Class
Class type
Source
OjsBinding with JS values.
val string_of_js : t -> stringval string_to_js : string -> tval int_of_js : t -> intval int_to_js : int -> tval bool_of_js : t -> boolval bool_to_js : bool -> tval float_of_js : t -> floatval float_to_js : float -> tWrap 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 -> tval has_property : t -> string -> boolval iter_properties : t -> (string -> unit) -> unitVariant 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 -> tval global : tval null : tval variable : string -> tval type_of : t -> stringval delete : t -> string -> unitval is_null : t -> boolval obj_type : t -> stringReturns: "object Array" "object Object" "object Number" "object String" "object Null" "object Boolean"