add is.urlSearchParams
This commit is contained in:
parent
28231663d1
commit
26d668c9f1
3 changed files with 37 additions and 0 deletions
11
readme.md
11
readme.md
|
|
@ -443,6 +443,17 @@ is.formData(data);
|
|||
//=> true
|
||||
```
|
||||
|
||||
##### .urlSearchParams(value)
|
||||
|
||||
Returns `true` if `value` is an instance of the [`URLSearchParams` class](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams).
|
||||
|
||||
```js
|
||||
const data = new URLSearchParams();
|
||||
|
||||
is.urlSearchParams(data);
|
||||
//=> true
|
||||
```
|
||||
|
||||
##### .any(predicate | predicate[], ...values)
|
||||
|
||||
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