Posted By

zb3k on 06/23/08


Tagged

search array inarray


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

sundaramkumar
inkdeep


in_array compact version


 / Published in: JavaScript
 

  1. var in_array = function(s,a) {for(var k in a) if(a[k]==s) return 1; return 0;}

Report this snippet  

You need to login to post a comment.