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){
...
}
caveat: it can't use any javascript frameworks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…