Update readme.md
This commit is contained in:
parent
f2863e0339
commit
274a9cc11a
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue