It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
In my previous post, I looked at some of the problems associated with long parameters lists for methods and constructors. In that post, I discussed replacing primitives and built-in types with custom ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results