const colors = ["black", "red", "pink", ];
this is colors
array.I can check if one of the values is present in colors array. For e.g. here, I want to check if red is present in colors array. I use below code.
Const IsRedExist = colors.includes("red"); //returns true
So I want a flag to know if red or white or blue exists in colors array. How do I achieve that ? Any suggestions on this ?