We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e2f870 commit 781ad87Copy full SHA for 781ad87
jscomp/others/belt_Option.ml
@@ -18,7 +18,7 @@ let getOrElse opt default = match opt with
18
| Some x -> x
19
| None -> default
20
21
-let exists = function
+let has = function
22
| Some _ -> true
23
| None -> false
24
jscomp/others/belt_Option.mli
@@ -3,5 +3,5 @@ val fold : 'a option -> 'b -> ('a -> 'b) -> 'b
3
val map : 'a option -> ('a -> 'b) -> 'b option
4
val flatMap : 'a option -> ('a -> 'b option) -> 'b option
5
val getOrElse : 'a option -> 'a -> 'a
6
-val exists : 'a option -> bool
+val has : 'a option -> bool
7
val isEmpty : 'a option -> bool
0 commit comments