Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "of-type", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Check if the given value is of the particular type or types.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,4 +28,4 @@ # Description | ||
* Possible values: `'null'`, `'undefined'`, or any value equal to `constructor.name`, eg. `'string'`, `'number'`, `'regexp'`, `'array'`, `'object'`, `'boolean'`,`'buffer'`, etc. | ||
* The **`types`** **[String]** is case insensitive: `'String'`, `'string'`, `'StRiNg'` checks if the **`val`** is of type [String]. For **`types`** **[RegExp]** case insensitivity use `i` flag, eg.: `/String/`, `/string/i`, `/sTrInG/i` | ||
* The **`types`** **[String]** can contain multiple allowed types, separated with `|`, eg: `'array|object'`, `'boolean|number|null|undefined'`, `string|number`. For **`types`** **[RegExp]** multiple values use `(x|y)` expression, eg: `/(string|number)/i` | ||
* The **`types`** [String] is case insensitive: `'String'`, `'string'`, `'StRiNg'` checks if the **`val`** is of type [String]. For **`types`** [RegExp] case insensitivity use `i` flag, eg.: `/String/`, `/string/i`, `/sTrInG/i` | ||
* The **`types`** [String] can contain multiple allowed types, separated with `|`, eg: `'array|object'`, `'boolean|number|null|undefined'`, `string|number`. For **`types`** [RegExp] multiple values use `(x|y)` expression, eg: `/(string|number)/i` | ||
@@ -32,0 +32,0 @@ ##### Extra types: |
7920