UNPKG

react-elegant-ui

Version:

Elegant UI components, made by BEM best practices for react

8 lines (7 loc) 215 B
/** * Flatten array * * Handler take basic item and return result item or array of it * and array will flatten */ export declare const flatMap: <T = any, E = T>(itemList: T[], fn: (item: T) => E | E[]) => E[];