Module Browser_expertSource

This library contains utility functions that are compatible with Browser_types. They are already included in Browser

Sourcemodule Types = Browser_types
Sourcemodule Record : sig ... end
Sourcemodule Int64 : sig ... end
Sourcemodule Global : sig ... end
Sourceval is_int64 : 'a Js.t -> bool

Check if a JavaScript value is a 64-bit integer

Sourceval is_int : 'a Js.t -> bool

Check if a JavaScript value is an OCaml-compatible integer

Sourceval is_typeof : 'a Js.t -> [ `String | `Boolean | `Number | `Object_ | `Function | `Null | `Undefined ] -> bool

Checks 'a Js.t using typeof

Sourceval is_nullish : 'a Js.t -> bool

Returns true if the value is either null or undefined

Sourceval 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_

Sourcemodule For_open : sig ... end