Re:NPM Vulnerability Discussion on Twitter
by jefftk on Tuesday May 10, 2022 @11:03AM
(#31327967)
Regular isNaN is very tricky, and almost never what you want: it first coerces its input to a Number, and then checks if that is NaN:
[ Parent
| on HN ]
But none of those things you listed are numbers. The isNaN output is exactly what I want in pretty much every case.