package brr

  1. Overview
  2. Docs
Browser programming toolkit for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

brr-0.0.9.tbz
sha512=45cdf73c6a23c8fc4609a32ae2196d4790e5bdba34ca0b784bff9c0b70dab233eb336f1c11dc3002451042ff4cf25b643098ad0d011f14c3d6175842113bed21

doc/brr/Jv/Jstr/index.html

Module Jv.JstrSource

Jstr object properties.

Sourceval find : t -> prop -> Jstr.t option

find o p is find_map of_jstr Jv.find o p. This is unsafe, only use if you know that if o defines p it is guaranteed to be a JavaScript string.

Sourceval get : t -> prop -> Jstr.t

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

Sourceval set : t -> prop -> Jstr.t -> unit

set o p b is Jv.set o p (to_jv b).

Sourceval set_if_some : t -> prop -> Jstr.t option -> unit

set_if_some o p b is Jv.set_if_some o p (Option.map to_jv b).

Sourcetype t = Jstr.t

Just here because we can't refer to the outer Jstr after this module definition.