import { throws } from '../utils' export function any(source: Iterable, predicate?: (item: TSource) => boolean): boolean { throws.ThrowIfNull('source', source) predicate = predicate || (() => true) for (let item of source) { if (predicate(item)) { return true } } return false }