Module Jv.Jstr
Jstr
object properties.
val find : t -> prop -> Jstr.t option
find o p
isfind_map of_jstr Jv.find o p
. This is unsafe, only use if you know that ifo
definesp
it is guaranteed to be a JavaScript string.
val get : t -> prop -> Jstr.t
get o p
isof_jv (Jv.get o p)
. This is unsafe, only use if you knowo
hasp
and it is guaranteed to be a JavaScript string.
val set_if_some : t -> prop -> Jstr.t option -> unit
set_if_some o p b
isJv.set_if_some o p (Option.map to_jv b)
.
type t
= Jstr.t
Just here because we can't refer to the outer Jstr after this module definition.