Skip to content

Commit 2c0358c

Browse files
Update concepts/type-checking/about.md
Co-authored-by: Derk-Jan Karrenbeld <[email protected]>
1 parent 2c8f19c commit 2c0358c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

concepts/type-checking/about.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ For better type safety and stronger types, you should probably use TypeScript, a
1313
## The `typeof` operator
1414

1515
The `typeof` operator returns the type of its input.
16-
The output is restricted to one of the [primitive data types][primitives], `"function"` or `"object"`.
16+
The output is a string matching the name of one of the [primitive data types][primitives], except for `"null"`.
17+
It can also be `"function"` or `"object"`.
1718

1819
```javascript
1920
typeof undefined;

0 commit comments

Comments
 (0)