Skip to content

Commit d25f911

Browse files
committed
update readme
1 parent 7e6f49b commit d25f911

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

README.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,40 @@ See the [test page](https://wizard04wsu.github.io/javascript-type-testing/test/t
1313
This module uses an expanded set of type names that make no distinction between primitive values and objects.
1414
For example, `5` and `new Number(5)` are both of type "number".
1515

16-
| Type Name | Primitive Values | Instances Of Classes
16+
| Type Name | Primitive Values | Instances Of Classes
1717
| - | - | -
18-
| defined | any value (not undefined) | `Object`
19-
| undefined | undefined |
20-
| primitive | not an instance of `Object` |
21-
| object | | `Object`
22-
| objectish | `null` | `Object`
23-
| null | `null` |
24-
| nullish | undefined, `null` |
25-
| boolean | `false`, `true` |
26-
| false | `false` |
27-
| true | `true` |
28-
| falsy | undefined, `null`, `false`, `0n`, `NaN`, `0`, `""` |
29-
| truthy | values that are not _falsy_ | `Object`
30-
| symbol | a `Symbol` |
31-
| bigint | `0n`, `5n` |
32-
| numberish | `0`, `5`, `Infinity`, `NaN` | `Number`
33-
| nan | `NaN` | `Number` instances with value `NaN`
34-
| number | `0`, `5`, `Infinity` | `Number` excluding instances with value `NaN`
35-
| real | `0`, `5` | `Number` instances for real numbers
36-
| infinite | `Infinity` | `Number` instances for infinite numbers
37-
| string | `""`, `"foo"` | `String`
38-
| array | `[]`, `[1,2]` | `Array`
39-
| map | | `Map`
40-
| set | | `Set`
41-
| weakmap | | `WeakMap`
42-
| weakset | | `WeakSet`
43-
| empty | `[]` | `String` or `Array` of length == 0, `Map` or `Set` of size == 0
44-
| nonempty | values that are not _empty_ | instances that are not _empty_
45-
| date | | `Date`
46-
| error | | `Error`
47-
| function | | `Function`, `function(){}`, `()=>{}`
48-
| promise | | `Promise`
49-
| regex | | `Regex`, `/foo/`
18+
| defined | any value (not undefined) | `Object`
19+
| **undefined** | undefined |
20+
| primitive | not an instance of `Object` |
21+
| **object** | | `Object`
22+
| objectish | `null` | `Object`
23+
| **null** | `null` |
24+
| nullish | undefined, `null` |
25+
| **boolean** | `false`, `true` |
26+
| false | `false` |
27+
| true | `true` |
28+
| falsy | undefined, `null`, `false`, `0n`, `NaN`, `0`, `""` |
29+
| truthy | values that are not _falsy_ | `Object`
30+
| **symbol** | a `Symbol` |
31+
| **bigint** | `0n`, `5n` |
32+
| numberish | `0`, `5`, `Infinity`, `NaN` | `Number`
33+
| **nan** | `NaN` | `Number` instances with value `NaN`
34+
| **number** | `0`, `5`, `Infinity` | `Number` excluding instances with value `NaN`
35+
| real | `0`, `5` | `Number` instances for real numbers
36+
| infinite | `Infinity` | `Number` instances for infinite numbers
37+
| **string** | `""`, `"foo"` | `String`
38+
| **array** | `[]`, `[1,2]` | `Array`
39+
| **map** | | `Map`
40+
| **set** | | `Set`
41+
| **weakmap** | | `WeakMap`
42+
| **weakset** | | `WeakSet`
43+
| empty | `[]` | `String` or `Array` of length == 0, `Map` or `Set` of size == 0
44+
| nonempty | values that are not _empty_ | instances that are not _empty_
45+
| **date** | | `Date`
46+
| **error** | | `Error`
47+
| **function** | | `Function`, `function(){}`, `()=>{}`
48+
| **promise** | | `Promise`
49+
| **regex** | | `Regex`, `/foo/`
5050

5151

5252
## Determine a Type

0 commit comments

Comments
 (0)