starry.some
4.0.0 • Public • Published Member of the starry suite—modular functions for iterable objects.
Status
Applies to the whole suite.
Usage
function some<T = any>(
iterable: Iterable<T>,
predicate: (item: T) => boolean = x => x as T & boolean
): boolean
Returns whether any element of iterable
satisfies predicate
.
Parameters:
- iterable -
Iterable<T>
- predicate -
Function<T, Boolean>
. Default: x => x
Returns: Boolean
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 4.0.0
2
Version History
Package Sidebar
Install
Weekly Downloads