Modifying object at a particular index overwrites the same property for other indexes too

后端 未结 0 1356
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 13:41

I have an object array armies having 4 entries. When i try to modify availableVehicle property for a particular index, availableVehicle property for all indexes gets updated

相关标签:
回答
  • 消灭零回复
提交回复
热议问题