Hello all,
I used this when i don’t have to push the array in another variable because push creates position also of the array. so, this makes my working or result not according my requirement.
Then i use Spread Operator to overcome this issue
this.mainArray = [...this.mainArray, ...this.subArray];









![Cannot read property ‘toLowerCase’ of undefined [ERROR] An error occurred while running subprocess cordova.](https://blog.rahulbhutani.com/wp-content/uploads/2020/12/ionic-enable-xcode-permissions-banner-218x150.png)






