(attributes: Record<string, string> = {})
| 2 | import { getRowElements } from "./getRowElements"; |
| 3 | |
| 4 | function createElement(attributes: Record<string, string> = {}) { |
| 5 | const element = document.createElement("div"); |
| 6 | for (const [name, value] of Object.entries(attributes)) { |
| 7 | element.setAttribute(name, value); |
| 8 | } |
| 9 | return element; |
| 10 | } |
| 11 | |
| 12 | function createRow(index: number, rowCount: number = 10) { |
| 13 | return createElement({ |
no outgoing calls
no test coverage detected