I need a javascript function that can take in a string and an array, and return true if that string is in the array..
function inArray(str, arr){ ... }
careful:
indexOf() uses partial data. if you have '12', '1'
indexOf('1') will get you the index of '12' not '1'