From c1bfc5a280ed2b73a9c5b8c8295fcafa0e8583b1 Mon Sep 17 00:00:00 2001 From: Matthias Le Brun Date: Sat, 4 May 2024 10:34:59 +0200 Subject: [PATCH] Update array.md --- docs/docs/array.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/array.md b/docs/docs/array.md index e472970..b3a87ff 100644 --- a/docs/docs/array.md +++ b/docs/docs/array.md @@ -36,7 +36,7 @@ Return the first item in the array for which `predicate` returns true. The function returns an `Option` so that we can distinguish between a found nullish value and a not found value. ```ts title="Examples" -Array.getfindBy(array, (x) => x === undefined); +Array.find(array, (x) => x === undefined); // Some(undefined) if found // None if not found ```