2 ms·
Personally, I don't like if even accepting things that are not boolean. But an empty array being false makes exactly as much sense as an empty string being fals
by marcosdumay 5y ago
Personally, I don't like if even accepting things that are not boolean. But an empty array being false makes exactly as much sense as an empty string being false, and both should have always the same behavior.
If you want objects to behave like dictionaries, an empty object should also behave the same, by the way.