3 ms·
Anything "falsy" -- any item that, when cast to boolean results in false. So, also zeroes, falses and empty strings.
by sergiosgc 4y ago
Anything "falsy" -- any item that, when cast to boolean results in false. So, also zeroes, falses and empty strings.
- sjamaan 4y agoThat was my point - OP said it "culls nulls", and the pitfall is that kind of thinking - if you think of it as removing nulls and you're not mindful, you might be deleting things from the list you don't want to be deleting.