(oldData: RowData, newData: RowData)
| 172 | } |
| 173 | |
| 174 | function detectChangedColumns(oldData: RowData, newData: RowData): string[] { |
| 175 | const changed: string[] = [] |
| 176 | const allKeys = new Set([...Object.keys(oldData), ...Object.keys(newData)]) |
| 177 | |
| 178 | for (const key of allKeys) { |
| 179 | if (JSON.stringify(oldData[key]) !== JSON.stringify(newData[key])) { |
| 180 | changed.push(key) |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | return changed |
| 185 | } |
no test coverage detected