package brr

  1. Overview
  2. Docs
Browser programming toolkit for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

brr-0.0.7.tbz
sha512=4b3d42eb6a32c1d6f1c5ef003f5311b5029156b31f6e51af098b695c769699e0304b66afd2dd574ecf1084e095bbbc4eac552daab083766cd81ed2f1d9897d51

doc/brr/Jv/Bool/index.html

Module Jv.Bool

bool properties accessors.

val find : t -> prop -> bool option

find o p is Option.map to_bool (find o p). This is unsafe, only use if you know that if o defines p it is guaranteed to be a JavaScript boolean.

val get : t -> prop -> bool

get o p is to_bool (get o p). This is unsafe, only use if you know o has p and it is guaranteed to be a JavaScript boolean.

val set : t -> prop -> bool -> unit

set o p b is set o p (of_bool b).

val set_if_some : t -> prop -> bool option -> unit

set_if_some o p b is set_if_some o p (Option.map of_bool b).

OCaml

Innovation. Community. Security.