If you have to extend an existing object with additional property, always prefer Vue.set() over Object.assign() (or spread operator).
Example below explains implications for different implementations.
| // AT Ing, they say they cannot let you download an extract of your | |
| // credit card expenses because it is impossible given how the system was built. | |
| // But I needed to be able to do it, so I just spent an hour doing it. | |
| function ConvertToCSV(objArray) { | |
| var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray; | |
| var str = ''; | |
| for (var i = 0; i < array.length; i++) { | |
| var line = ''; |