Skip to content

Instantly share code, notes, and snippets.

@alanshaw
Created November 11, 2013 10:45
Show Gist options
  • Save alanshaw/7411296 to your computer and use it in GitHub Desktop.
Save alanshaw/7411296 to your computer and use it in GitHub Desktop.
JavaScript test for Array
function isArray (obj) {
return Object.prototype.toString.call(obj) == "[object Array]"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment