data-table-large-matches.js 376 B

1234567891011121314151617
  1. import { isDataTable, toArray } from '../commons/table';
  2. function dataTableLargeMatches(node) {
  3. if (isDataTable(node)) {
  4. var tableArray = toArray(node);
  5. return (
  6. tableArray.length >= 3 &&
  7. tableArray[0].length >= 3 &&
  8. tableArray[1].length >= 3 &&
  9. tableArray[2].length >= 3
  10. );
  11. }
  12. return false;
  13. }
  14. export default dataTableLargeMatches;