An example is worth a thousand words.
This section is dedicated to newcomers trying to figure out general idioms & conventions. If you're a beginner who's got a good idea for an example, please suggest an edit!
Or using record:
undefined, it's idiomatic to convert it to an
option. The conversion is done through the helper functions in ReScript's
Js.Nullable module. In this case,
This check compiles to
possiblyNullName == null in JS, so checks for the presence of