(rows: number = 100, colCount: number = 4)
| 75 | * @returns {Array} |
| 76 | */ |
| 77 | export function createSpreadsheetObjectData(rows: number = 100, colCount: number = 4): Record<string, string>[] { |
| 78 | const _rows = []; |
| 79 | let i; |
| 80 | let j; |
| 81 | |
| 82 | for (i = 0; i < rows; i++) { |
| 83 | const row: Record<string, string> = {}; |
| 84 | |
| 85 | for (j = 0; j < colCount; j++) { |
| 86 | row[`prop${j}`] = spreadsheetColumnLabel(j) + (i + 1); |
| 87 | } |
| 88 | _rows.push(row); |
| 89 | } |
| 90 | |
| 91 | return _rows; |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Generates an empty data object. |
no test coverage detected
searching dependent graphs…