Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
91
rated 0 times [  96] [ 5]  / answers: 1 / hits: 24998  / 15 Years ago, wed, may 20, 2009, 12:00:00

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.


More From » arrays

 Answers
16
[#99487] Sunday, May 17, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
micayla

Total Points: 148
Total Questions: 92
Total Answers: 109

Location: Aruba
Member since Sat, Oct 2, 2021
3 Years ago
micayla questions
Fri, Dec 24, 21, 00:00, 2 Years ago
Thu, Apr 16, 20, 00:00, 4 Years ago
Thu, Nov 14, 19, 00:00, 5 Years ago
;