Typescript after array allocation both arrays get modified by splice

前端 未结 0 1514
后悔当初
后悔当初 2020-12-16 08:25

Iam really confused about this behaviour in my typescript code. I have two arrays:

arr1: string[] = [\'a\', \'b\', \'c \'];
arr2: string[] = [];
相关标签:
回答
  • 消灭零回复
提交回复
热议问题