Does an equivalent of the JavaScript Array.some() function exist in C#?
Yes there is: Any
var foo = new object[10];
var some = foo.Any(x => x != null);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With