Pages

JavaScript typeof null

JavaScript can be so cruel.

typeof null === 'object'; // This stands since the beginning of JavaScript

This is planned on being fixed in the next version of ECMAScript (which will be available via an opt-in). It will result in typeof null === 'null'.

Note: it's been rejected

See

No comments:

Post a Comment