Re:Null is an Object in JavaScript
by goto11 on Wednesday February 08, 2023 @06:54PM
(#34717557)
If you want a version of typeof without this quirk it is trivially easy to write a typeof2023() function with the desired behavior. And it would be fully backwards compatible with existing code and existing browsers.
No need to fork the language for this!
"use strict" was for fixing some fundamental mistakes which couldn't be fixed in a backwards-compatible way.
No need to fork the language for this!
"use strict" was for fixing some fundamental mistakes which couldn't be fixed in a backwards-compatible way.