add is.formData
This commit is contained in:
parent
c6eac3ebd4
commit
28231663d1
1 changed files with 11 additions and 0 deletions
11
readme.md
11
readme.md
|
|
@ -432,6 +432,17 @@ Returns `true` if `value` is an odd integer.
|
||||||
|
|
||||||
Returns `true` if `value` can be used as an object property key (either `string`, `number`, or `symbol`).
|
Returns `true` if `value` can be used as an object property key (either `string`, `number`, or `symbol`).
|
||||||
|
|
||||||
|
##### .formData(value)
|
||||||
|
|
||||||
|
Returns `true` if `value` is an instance of the [`FormData` class](https://developer.mozilla.org/en-US/docs/Web/API/FormData).
|
||||||
|
|
||||||
|
```js
|
||||||
|
const data = new FormData();
|
||||||
|
|
||||||
|
is.formData(data);
|
||||||
|
//=> true
|
||||||
|
```
|
||||||
|
|
||||||
##### .any(predicate | predicate[], ...values)
|
##### .any(predicate | predicate[], ...values)
|
||||||
|
|
||||||
Using a single `predicate` argument, returns `true` if **any** of the input `values` returns true in the `predicate`:
|
Using a single `predicate` argument, returns `true` if **any** of the input `values` returns true in the `predicate`:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue