Closed taylorreece closed 3 years ago
Reasoning: Boolean('') === false, so toBool('') should probably also return false (rather than its current behavior of throwing an error.
Boolean('') === false
toBool('')
false
For toInt(), I'd expect empty string to behave the same as undefined.
toInt()
undefined
Reasoning:
Boolean('') === false
, sotoBool('')
should probably also returnfalse
(rather than its current behavior of throwing an error.For
toInt()
, I'd expect empty string to behave the same asundefined
.