(collection: Iterable<boolean>)
| 255 | * @since 2.0.0 |
| 256 | */ |
| 257 | export const every = (collection: Iterable<boolean>): boolean => { |
| 258 | for (const b of collection) { |
| 259 | if (!b) { |
| 260 | return false |
| 261 | } |
| 262 | } |
| 263 | return true |
| 264 | } |
| 265 | |
| 266 | /** |
| 267 | * This utility function is used to check if at least one of the elements in a collection of boolean values is `true`. |
no outgoing calls
no test coverage detected
searching dependent graphs…