Skip to content

Commit

Permalink
Update array.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl authored May 4, 2024
1 parent 25ac961 commit c1bfc5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit c1bfc5a

Please sign in to comment.