You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jscomp/others/belt_Array.mli
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -369,6 +369,16 @@ val map: 'a array -> ('a -> 'b ) -> 'b array
369
369
370
370
*)
371
371
372
+
valgetByU: 'at -> ('a -> bool [@bs]) -> 'aoption
373
+
valgetBy: 'at -> ('a -> bool) -> 'aoption
374
+
(** [getBy xs p] returns [Some value] for the first value in [xs] that satisifies the predicate function [p]; returns [None] if no element satisifies the function.
0 commit comments