(collection: Iterable<Predicate<A>>)
| 1872 | * @since 2.0.0 |
| 1873 | */ |
| 1874 | export function some<A>(collection: Iterable<Predicate<A>>): Predicate<A> { |
| 1875 | return (a) => { |
| 1876 | for (const p of collection) { |
| 1877 | if (p(a)) { |
| 1878 | return true |
| 1879 | } |
| 1880 | } |
| 1881 | return false |
| 1882 | } |
| 1883 | } |