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/Float/index.html

Module Jv.FloatSource

float object properties.

Sourceval find : t -> prop -> float option

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

Sourceval get : t -> prop -> float

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

Sourceval set : t -> prop -> float -> unit

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

Sourceval set_if_some : t -> prop -> float option -> unit

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