You should definitely include it if there is any need to distinguish between null
and undefined
since those have two different meanings in Javascript. You can think of null
as meaning the property is unknown or meaningless, and undefined
as meaning the property doesn't exist.
On the other hand, if there is no need for anyone to make that distinction then go ahead and leave it out.