Question sur la doc Array #87
Closed
jojojojojoj5564656465465
started this conversation in
General
Replies: 2 comments 3 replies
-
|
c'était une erreur dans l'exemple, c'est corrigé ! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
je crois qu'il y a une autre erreur dans la doc : =>Some(None) || some() or None It can be useful to distinguish values between each other: you can represent Some(None) with options, whereas undefined or null replace the value they intend to make optional. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
C'est bon ce code ?
Array.filterMap([1, 2, 3], (x) =>
isEven(x) === 0 ? Option.Some(x) : Option.None(),
); // [2]
Je comprends pas le === 0
Beta Was this translation helpful? Give feedback.
All reactions