Login
From:
CSS In Real Life
(Uncensored)
subscribe
Handling Null, Undefined and Zero Values in JavaScript
https://css-irl.info/handling-null-undefined-and-zero-values-in-javascript/
links
backlinks
Roast topics
Find topics
Find it!
In JS, it’s easy to get caught out when determining if a variable is null, undefined, or has a value of zero. I do a lot of data visualisation, and quite often I’ll need to filter out null values from an array of data.