higlass
Version:
HiGlass Hi-C / genomic / large data viewer
11 lines (10 loc) • 432 B
TypeScript
export default some;
/**
* Functional version of `Array.forEach`. More flexible and applicable to
* other array-like data types like `NodeList`.
*
* @template T
* @param {(item: T, i: number) => boolean} f - Modifier function applied on every item of the array.
* @return {(arr: Array<T>) => boolean} Modified array-like variable.
*/
declare function some<T>(f: (item: T, i: number) => boolean): (arr: Array<T>) => boolean;