File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1264,7 +1264,7 @@ function quux (foo) {}
1264
1264
1265
1265
Reports invalid types.
1266
1266
1267
- By default, ensures that case of native types is the same as in this list:
1267
+ By default, ensures that the casing of native types is the same as in this list:
1268
1268
1269
1269
```
1270
1270
undefined
@@ -1274,6 +1274,7 @@ number
1274
1274
string
1275
1275
object
1276
1276
Array
1277
+ Function
1277
1278
Date
1278
1279
RegExp
1279
1280
```
@@ -1319,9 +1320,10 @@ functions might not even support the objects if they are checking for identity.)
1319
1320
type name | ` typeof ` | check-types | testcase
1320
1321
--|--|--|--
1321
1322
** Array** | object | ** Array** | ` ([]) instanceof Array ` -> ` true `
1323
+ ** Function** | function | ** function** | ` (function f () {}) instanceof Function ` -> ` true `
1322
1324
** Date** | object | ** Date** | ` (new Date()) instanceof Date ` -> ` true `
1323
1325
** RegExp** | object | ** RegExp** | ` (new RegExp(/.+/)) instanceof RegExp ` -> ` true `
1324
- ** Object** | object | ** object** | ` ({}) instanceof Object ` -> ` true ` but ` Object.create(null) instanceof Object ` -> ` false `
1326
+ Object | ** object** | ** object** | ` ({}) instanceof Object ` -> ` true ` but ` Object.create(null) instanceof Object ` -> ` false `
1325
1327
Boolean | ** boolean** | ** boolean** | ` (true) instanceof Boolean ` -> ** ` false ` **
1326
1328
Number | ** number** | ** number** | ` (41) instanceof Number ` -> ** ` false ` **
1327
1329
String | ** string** | ** string** | ` ("test") instanceof String ` -> ** ` false ` **
You can’t perform that action at this time.
0 commit comments