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];









![SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes](https://blog.rahulbhutani.com/wp-content/uploads/2020/04/123-218x150.jpg)







