Why is null considered an object in JavaScript?
null
object
Is checking
if ( object == null ) Do something
the
Look at this:
//return: nothing //undefined null false null //object null false empty //string false zero //number false int //number true str //string true