I have this array which is an array of name collection
var nameCollection = ['Andre', 'Ann', 'Bob', 'Bill', 'Cindy', 'Camille', ...];
How can I get the position of the first text which start with A, B or Z dynamically? I turn around to find the solution but I think someone didn't ask this question before.
If someone could give me an example, it will be welcome! :)