:-/ ...
You made a test with client.hasDevice && and the variable is elderlyWithoutDevice
And the FP version don't test client.hasDevice , so we can't make a comparaison ... :-/
Oh, it's actually a mess, yes you are right, can't believe this slipped in. I had a real life version containing much more logic and company specific bits I refactored out for the example. I'll update, my bad.
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.
:-/ ...
You made a test with
client.hasDevice &&
and the variable iselderlyWithoutDevice
And the FP version don't test
client.hasDevice
, so we can't make a comparaison ... :-/Oh, it's actually a mess, yes you are right, can't believe this slipped in. I had a real life version containing much more logic and company specific bits I refactored out for the example. I'll update, my bad.