in_array compact version


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var in_array = function(s,a) {for(var k in a) if(a[k]==s) return 1; return 0;}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.