That's a much nicer way of doing it! For some reason I've only ever thought of using the A in B mapped properties with unions of strings, even when the as thing was released. Thanks for showing a better solution!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There’s also a typo in step 4 of the intermediate problem (‘soley’ instead of ‘solely’).
thanks, fixed
I think you don't need the Extract for the intermediate challenge.
That's a much nicer way of doing it! For some reason I've only ever thought of using the
A in B
mapped properties with unions of strings, even when theas
thing was released. Thanks for showing a better solution!