Why does this JavaScript Object is vs === for NaN?

Why does this JavaScript Object is vs === for NaN check. The JavaScript code uses === to detect NaN. In JavaScript Object.is is needed for NaN and negative zero.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascriptapi #javascriptengineeri...

https://www.youtube.com/watch?v=ViTzYGW4VsQ

Why does this JavaScript Object is vs for NaN? #whatswrongwiththisjavascriptcode

YouTube