Clarification on how D.get
works when key exists but value is undefined
#75
Labels
bug
Something isn't working
D.get
works when key exists but value is undefined
#75
I have some trouble using
D.get
and I'm unsure if this is a bug or if I'm misunderstanding the documentation.Here's a minimal example to show the issue I'm having
I can see the documentation says
In the above example the key does exist, and based on the return type of
D.get
I guess it becomesExtractValue<string | undefined>
which would end up asExclude<string | undefined, null | undefined | void>
resulting instring
, which does not correspond to the actual value being passed toO.map
To resolve this I've gone ahead with the following solution.
The text was updated successfully, but these errors were encountered: