The value could be either Js.true_ or Js.false_.
Note in BuckleScript, boolean has different representation from OCaml's bool,
see conversion functions in Js.Boolean
typeof x will be compiled as typeof x in JS
Please consider functions in Js.Types for a type safe way of reflection
val log : 'a -> unit
typeof x will be compiled as typeof x in JS
val log2 : 'a -> 'b -> unit
val log3 : 'a -> 'b -> 'c -> unit
val log4 : 'a -> 'b -> 'c -> 'd -> unit
A convenience function to log everything
val logMany : 'a array -> unit
A convenience function to log more than 4 arguments
val unsafe_lt : 'a -> 'a -> bool
unsafe_lt a b will be compiled as a < b.
It is marked as unsafe, since it is impossible
to give a proper semantics for comparision which applies to any type
val unsafe_le : 'a -> 'a -> bool
unsafe_le a b will be compiled as a <= b.
See also Js.unsafe_lt
val unsafe_gt : 'a -> 'a -> bool
unsafe_gt a b will be compiled as a > b.
See also Js.unsafe_lt
val unsafe_ge : 'a -> 'a -> bool
unsafe_ge a b will be compiled as a >= b.
See also Js.unsafe_lt