package brr

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

float object properties.

val 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.

val 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.

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

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

val 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).

OCaml

Innovation. Community. Security.