Javascript - Updating duplicated numbers in an array

前端 未结 0 886
青春惊慌失措
青春惊慌失措 2021-01-05 19:14

I have an unordered list like this;

list1 = [2,3,1,2,1,3,3,1,2]

I want to add +10 to the recurring elements in this list every time. So there

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