Closed dharmavagabond closed 4 years ago
Yes this is the expected behaviour. There are a lot of scenarios where null
is considered a valid value. If you want to do that you could use kleisli comp with getProp
and safe
composeK(
safe(isNotNull),
getProp('current')
)
Ok, thanks mate.
np, glad to help. If you want, feel free to join the gitter if you like. It's quite active
Will do, cheers!
As the title says, having something like
getProp('current')({ current: null })
, returnsJust(null)
, since internally it uses theisDefined
function—which only checks forundefined
and not anull
value. Is that the intended behavior?