()
| 563 | } |
| 564 | |
| 565 | function mutateData() { |
| 566 | // Swap first and second data in data array |
| 567 | const copiedData = component.dataSource.data.slice(); |
| 568 | const temp = copiedData[0]; |
| 569 | copiedData[0] = copiedData[1]; |
| 570 | copiedData[1] = temp; |
| 571 | |
| 572 | // Remove the third element |
| 573 | copiedData.splice(2, 1); |
| 574 | |
| 575 | // Add new data |
| 576 | component.dataSource.data = copiedData; |
| 577 | component.dataSource.addData(); |
| 578 | } |
| 579 | |
| 580 | function mutateProperties() { |
| 581 | const copiedData = component.dataSource.data.slice(); |
no test coverage detected
searching dependent graphs…