higlass
Version:
HiGlass Hi-C / genomic / large data viewer
14 lines (13 loc) • 434 B
TypeScript
export default map;
/**
* Exposed map function. You can do cool stuff with that!
*
* @description
* The pure map function is more powerful because it can be used on data types
* other than Array too.
*
* @template T, B
* @param {(item: T, idx?: number) => B} f - Mapping function.
* @return {(x: Array<T>) => Array<B>} Mapped array.
*/
declare function map<T, B>(f: (item: T, idx?: number) => B): (x: Array<T>) => Array<B>;