parm1 = "val1"
parm2 = "val1"
parm3 = "val2"
parm4 = "val1"
How can I check if a value was assigned more than 2 times for a list of parms (the value can be any and is unknown)
-later edit-
I've also found this solution
const parm1 = "val1",
parm2 = "val1",
parm3 = "val2",
parm4 = "val1";
const parms = [parm1,parm2,parm3,parm4];
const list = [...new Set(parms)];
if(list.length >= 3){
console.log("more than 3 different values")
}