add is.urlSearchParams

This commit is contained in:
kaysonwu 2021-09-11 20:47:00 +08:00
parent 28231663d1
commit 26d668c9f1
3 changed files with 37 additions and 0 deletions

View file

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