loading...

re: The Maybe data type in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Using Maybe like that has no sense. If you will use nullable (value | null) then withDefault is just x ?? 0 what means if x is null then fallback t...
 

Very good point! Could you please describe when using Maybe make sens in JavaScript/TypeScript?
And also do you know some libraries that provides Maybe types?

 

Will write the whole article about that. So watch out for it :)

code of conduct - report abuse