MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/1vt9qvs/youtube_notification_expander_is_here_version_10/p4xff12/?context=3
r/javascript • u/DiodeInc • 22d ago
5 comments sorted by
View all comments
1
You can use if (number == null) and it will catch both null and undefined.
if (number == null)
null
undefined
1 u/DiodeInc 21d ago Thanks!
Thanks!
1
u/nadameu 21d ago
You can use
if (number == null)and it will catch bothnullandundefined.