Choosing Between `.map .getOrElse` and `.match` in TypeScript Option Handling
Idiomatic way:
That would be simplified to:
And I can't choose between the two of them.
IS there a preferred method or it's just a matter of preferences ?
.map .getOrElse vs .match. Hello, almost 10 times a day, I write something like:That would be simplified to:
And I can't choose between the two of them.
IS there a preferred method or it's just a matter of preferences ?
