Update readme

This commit is contained in:
Kai Niedziela 2019-06-23 19:23:54 +02:00 committed by GitHub
parent a53fe2297b
commit 4b17aa351c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.