UNPKG

react-pivot

Version:

React-Pivot is a data-grid component with pivot-table-like functionality for data display, filtering, and exploration.

11 lines (10 loc) 236 B
export default function getValue (dimension, row) { if (dimension == null) return null let val if (typeof dimension.value === 'string') { val = row[dimension.value] } else { val = dimension.value(row) } return val }