browser.expert
Browser_expert
This library contains utility functions that are compatible with Browser_types. They are already included in Browser
Browser_types
Browser
browser.extra
browser.js_types
browser.manually_written
browser.shared
browser.types
ppx_browser
ppx_browser_runtime
module Js = Js_of_ocaml.Js
module Types = Browser_types
module Record : sig ... end
module Int64 : sig ... end
module Context = Browser_manually_written_bindings.Context
module Unsafe = Browser_manually_written_bindings.Unsafe
module Global : sig ... end
val is_int64 : 'a Js.t -> bool
Check if a JavaScript value is a 64-bit integer
val is_int : 'a Js.t -> bool
Check if a JavaScript value is an OCaml-compatible integer
val is_typeof : 'a Js.t -> [ `String | `Boolean | `Number | `Object_ | `Function | `Null | `Undefined ] -> bool
Checks 'a Js.t using typeof
'a Js.t
typeof
val is_nullish : 'a Js.t -> bool
Returns true if the value is either null or undefined
true
null
undefined
val coerce : 'a 'b. to_:'a Browser_js_types.instance_t -> 'b Js.t -> 'a Js.t option
coerce accepts a 'a instance_t and returns a 'a Js.t if 'b Js.t is instanceof to_
coerce
'a instance_t
'b Js.t
instanceof
to_
module For_open : sig ... end