Re:NPM – "is-even", 160k weekly downloads
by jazzyjackson on Wednesday November 17, 2021 @02:51AM
(#29250187)
Number.isFinite('') and Number.isNaN('') returns false, isFinite('') and isNaN('') returns true, the global versions of isFinite and isNaN first coerce their input to number, no '+' necessary.
Hence the heading "Confusing Special Case Behavior" in the mdn docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...