It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
Arrays are initialized similarly to variables of primitive data types; no extra steps are needed. Elements can be accessed directly in arrays using an index, and there are no methods; only the .length ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results