Open icopp opened 1 year ago
why is a boolean considered empty? And why
1) this is not documented here
2) there si no isNil()
that returns true only for undefined or null values?
It seems this function is meant to mirror the behavior of lodash.isempty
See: https://github.com/rayepps/radash/blob/03dd3152f560414e933cedcd3bda3c6db3e8306b/src/typed.ts#L68
I think it's reasonable to say that most people would find this an unintuitive result, as an explicit
true
orfalse
is a value that definitely exists.