How to optimize the for each loop with duplicate checking? Maybe use filter or map?

前端 未结 0 1915

how to optimize the CHOICES.forEach part? If both the options are selected, it will duplicate the creating the entries. The \'stupid\' way i can think if is to add a boolean, if

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