{row} | \n\n {columns.map((column) => {\n const rowData = rowsData[i];\n // rowData could be\n // object -> index by key\n // array -> index by array index\n // null -> pass\n // boolean -> pass\n // string -> pass (hasOwnProperty returns true for [0..len-1])\n // number -> pass\n // function -> pass\n // symbol\n // undefined -> pass\n if (typeof rowData === 'object' && rowData !== null && hasOwnProperty.call(rowData, column)) {\n return (\n\n | \n );\n } else {\n return ;\n }\n })}\n |
\n {indexColumnText}\n | \n {columns.map((column) => (\n\n {column}\n | \n ))}\n
---|