Module Js_option

module Js_option: sig .. end

type 'a t = 'a option 
val some : 'a -> 'a option
val isSome : 'a option -> bool
val isSomeValue : ('a -> 'a -> bool [@bs]) -> 'a -> 'a option -> bool
val isNone : 'a option -> bool
val getExn : 'a option -> 'a
val equal : ('a -> 'b -> bool [@bs]) -> 'a option -> 'b option -> bool
val andThen : ('a -> 'b option [@bs]) -> 'a option -> 'b option
val map : ('a -> 'b [@bs]) -> 'a option -> 'b option
val getWithDefault : 'a -> 'a option -> 'a
val default : 'a -> 'a option -> 'a
val filter : ('a -> bool [@bs]) -> 'a option -> 'a option
val firstSome : 'a option -> 'a option -> 'a option