Javascript indexOf method with multiple values

后端 未结 5 2085
耶瑟儿~
耶瑟儿~ 2021-01-02 17:50

I have an array wich contains multiple same values

[\"test234\", \"test9495\", \"test234\", \"test93992\", \"test234\"]
         


        
5条回答
  •  误落风尘
    2021-01-02 18:03

    Just make it a for loop to check each array element.

    var array = ["test234", "test9495", "test234", "test93992", "test234"];
    
    for (i=0;i");
      }
    }

提交回复
热议问题