List : Select certain elements in list (JavaScript)

Description
This is how to select certain elements within a generic List in JS. In this example, List containing Strings type is used.

Let's have the code mashup:

Then, in the same file:

This also works with an unsorted List.

by Amirul Zin Hachibei (talk) 15:29, 13 November 2012 (CET)