let colorSet = ["black", "red", "pink", ];
This is the colorSet
array. I can easily check if a specific value is present in the colorSet array. For example, to check if "red" is present in the array, I can use the following code:
let isRedPresent = colorSet.includes("red"); // returns true
Now, I want a way to determine if "red", "white", or "blue" exists in the colorSet array. How can I achieve this? Any suggestions or solutions for this scenario?