Lets say I have the following array in JavaScript:
var skins = new Array('Light', 'Medium', 'Dark');
How would I go about checking to see what ID in that array (0, 1, or 2) has a matching value to a string I give it. So for example, if I look at a string of 'Medium', I should be returned the ID 1.