Add is.fortyTwo

This commit is contained in:
Sindre Sorhus 2022-01-28 01:21:07 +07:00
parent c3d12667fd
commit 99153d79db
3 changed files with 11 additions and 0 deletions

View file

@ -471,6 +471,10 @@ is.urlSearchParams(searchParams);
//=> true
```
#### .fortyTwo(value)
Return `true` if `value` is `42`.
##### .any(predicate | predicate[], ...values)
Using a single `predicate` argument, returns `true` if **any** of the input `values` returns true in the `predicate`: