Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const renderRows = (
- resources: Array<Object>,
- settings: Object,
- fields?: Array<String>
- ) =>
- resources.map(resource => (
- <TableRow key={resource.id}>
- {
- Object.keys(resource).map(resourceProperty => (
- <TableCell>
- {ignoreProperties.indexOf(resourceProperty) == -1 && resource[resourceProperty]}
- </TableCell>
- ))
- }
- </TableRow>
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement