MCPcopy Index your code
hub / github.com/nadbm/react-datasheet / changeData

Function changeData

test/Datasheet.js:1544–1551  ·  view source on GitHub ↗
(changes)

Source from the content-addressed store, hash-verified

1542 jsdom()
1543
1544 const changeData = (changes) => {
1545 const newData = data.map(row => [...row])
1546 changes.forEach(({cell, row, col, value}) => {
1547 newData[row][col] = { data: value }
1548 })
1549
1550 return newData
1551 }
1552
1553 const cellCoords = (cell, data) => {
1554 let col = -1, row = -1

Callers 1

Datasheet.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected