Question:
I am scrolling through an array of many things in app. One of the items in the array is a string, and it is an optional. I’ve edited out everything else since my question is about the strings.At one point I need to call some functions on the strings, if they exist.
Both of these appear to work
Answer:
Comparing a default against a number is code stink. Deodorizing usually involvesOptional.map
If you have better answer, please add a comment about this, thank you!