Skip to content

Instantly share code, notes, and snippets.

@cmarkle27
Created August 4, 2012 01:26
Show Gist options
  • Save cmarkle27/3253316 to your computer and use it in GitHub Desktop.
Save cmarkle27/3253316 to your computer and use it in GitHub Desktop.
inArray (Javascript)
function inArray(item, arr) {
for (var p=0; p<arr.length; p++) if (item === arr[p]) return true;
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment