Ich muss wissen, ob ein Element zweimal oder mehrmals im Array ist.Überprüfen, ob das Element zweimal im Array ist
var arr = [elm1,elm2,elm3,elm3,elm4,elm5,elm5,elm5,elm6,elm7] ;
if(elm is in array by many time){
// do some code with this element
}else{
// other stuff ;;
}
Irgendwelche Vorschläge?