Comment Comment by fyfy18 In functional programming the Option type exists to make the 'literally no value' case more explicit.https://en.m.wikipedia.org/wiki/Option_typeIf you are using TypeScript (TFA mentions it), fp-ts provides a good functional programming layer. Although if you aren't already familiar with functional programming it's going to be hard as the documentation is rather lacking.https://github.com/gcanti/fp-ts/blob/master/src/Option.ts parent fyfy18 6 years ago
https://en.m.wikipedia.org/wiki/Option_type
If you are using TypeScript (TFA mentions it), fp-ts provides a good functional programming layer. Although if you aren't already familiar with functional programming it's going to be hard as the documentation is rather lacking.
https://github.com/gcanti/fp-ts/blob/master/src/Option.ts