UNPKG

@native-html/heuristic-table-plugin

Version:

🔠 A 100% native component using heuristics to render tables in react-native-render-html

13 lines (10 loc) • 312 B
import groupBy from 'ramda/src/groupBy'; import values from 'ramda/src/values'; import pipe from 'ramda/src/pipe'; import prop from 'ramda/src/prop'; import { TableCell } from '../shared-types'; const makeRows = pipe( groupBy<TableCell, string>(pipe(prop('y'), String)), values ); export default makeRows;