Update readme
This commit is contained in:
parent
a53fe2297b
commit
4b17aa351c
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ All the below methods accept a value and returns a boolean for whether the value
|
|||
##### .string(value)
|
||||
##### .number(value)
|
||||
|
||||
Note: `is.number(NaN)` returns `false`.
|
||||
Note: `is.number(NaN)` returns `false`. This intentionally deviates from `typeof` behavior to increase user-friendliness of `is` type checks.
|
||||
|
||||
##### .boolean(value)
|
||||
##### .symbol(value)
|
||||
|
|
@ -86,7 +86,7 @@ Keep in mind that [functions are objects too](https://developer.mozilla.org/en-U
|
|||
|
||||
##### .numericString(value)
|
||||
|
||||
Returns `true` for a string that represents a number. For example, `'42'` and `'-8'`.
|
||||
Returns `true` for a string that represents a number satisfying `is.number`.
|
||||
|
||||
Note: `'NaN'` returns `false`, but `'Infinity'` and `'-Infinity'` return `true`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue