I have an array of integers:
var a = [1,2,3,4];
How can I find out if a number such as the number 1 exists in this array without doing a for loop?
I saw that C# has an Array.Exists(T) method but I am not sure how to use it. If this is a good way to do it then I would appreciate some advice.