1

According to "8.2 The Null Type" chapter of Ecma-262 "null" is type.

But typeof(null) is object, so null is just a value of type object.

How could it be?

user996142
  • 2,753
  • 3
  • 29
  • 48

1 Answers1

2

This is a known bug. This will be fixed in ES6.

In ES6

typeof null === "null";

Raynos
  • 166,823
  • 56
  • 351
  • 396