Skip to content

Commit a82de6c

Browse files
committed
- update README
1 parent e815afd commit a82de6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ Syntax:
3131
3232
Parameters:
3333
- ***typeName*** - (string)
34-
- ***objectType*** - (string) The object name used by `Object.prototype.toString()`. If `objectType` is truthy, the Type instance is considered to be for a type of object (not a primitive).
34+
- ***objectType*** - (string) The object name used by `Object.prototype.toString()`. Include this for object types. Do not include this for primitive types.
3535

3636
| Property | Type | Description |
3737
| --- | --- | --- |
3838
| .**type** | string | The type name (`typeName`). This is also the instance's primitive value. |
3939
| .**objectType** | string | The object name used by `Object.prototype.toString()`. |
4040
| .**primitive** | string | For primitive types, this property is set to `typeName`. Otherwise, it's undefined. |
41-
| .**object** | string | For object types (i.e., `objectType` is truthy), this property is set to `typeName`. Otherwise, it's undefined. |
41+
| .**object** | string | For object types, this property is set to `typeName`. Otherwise, it's undefined. |
4242

4343
### Example
4444

0 commit comments

Comments
 (0)