Skip to content

Commit

Permalink
fix markdown (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
longdog authored Apr 30, 2024
1 parent 3adc659 commit c09dc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/option.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ option.flatMap((value) => value.optionalProperty);
Option<A>.filter(f: (value: A) => boolean): Option<A>
```

If the option is `Some(value)` and that `f(value)` is `true``, returns `Some(value)`, otherwise returns `None`.
If the option is `Some(value)` and that `f(value)` is `true`, returns `Some(value)`, otherwise returns `None`.

```ts title="Examples"
Option.Some(3).filter((x) => x > 2);
Expand Down

0 comments on commit c09dc26

Please sign in to comment.