JavaScript uses the null value to represent a missing object. Use the strict equality operator ( === ) to check if a value is null . The typeof null returns ‘object’ , which is historical bug in JavaScript that may never be fixed.
Read moreHow do you check if an object is null in JS?
JavaScript uses the null value to represent a missing object. Use the strict equality operator ( === ) to check if a value is null . The typeof null returns ‘object’ , which is historical bug in JavaScript that may never be fixed.
Read more