Skip to content

Instantly share code, notes, and snippets.

@geastwood
Last active December 24, 2015 15:59
Show Gist options
  • Save geastwood/6824327 to your computer and use it in GitHub Desktop.
Save geastwood/6824327 to your computer and use it in GitHub Desktop.
isArray, determine array by Object toString property
// use Object toString method to determine Array
var isArray = function(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