I want to check duplicate values in an array

前端 未结 4 1769
梦谈多话
梦谈多话 2021-01-29 09:18

Hi i\'m really glad to know this site to ask question. I have a problem that i made an array. And then i want to check matching values in the array. For example,



        
4条回答
  •  猫巷女王i
    2021-01-29 09:44

    Pretty much. At least, is the simpliest method to do what you want. If you need to control the ocurrences or similar, maybe a Map type is more suitable for you.

提交回复
热议问题