Skip to content

Instantly share code, notes, and snippets.

@dsimard
Created January 6, 2011 19:39
Show Gist options
  • Select an option

  • Save dsimard/768443 to your computer and use it in GitHub Desktop.

Select an option

Save dsimard/768443 to your computer and use it in GitHub Desktop.
How to know if an object is a hash
function isHash(obj) {
return typeof(obj) == "object" && 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