Update readme.md

This commit is contained in:
Sindre Sorhus 2020-07-24 17:29:26 +08:00 committed by GitHub
parent f2863e0339
commit 274a9cc11a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,8 +98,8 @@ Note: `is.number(NaN)` returns `false`. This intentionally deviates from `typeof
Returns true if `value` is an array and all of its items match the assertion (if provided).
```js
is.array(value) // validate `value` is an array
is.array(value, is.number) // validate `value` is an array and all of it's items are numbers.
is.array(value); // Validate `value` is an array.
is.array(value, is.number); // Validate `value` is an array and all of its items are numbers.
```
##### .function(value)