Skip to content

Instantly share code, notes, and snippets.

@ronnyhaase
Created April 11, 2014 11:20
Show Gist options
  • Select an option

  • Save ronnyhaase/10459724 to your computer and use it in GitHub Desktop.

Select an option

Save ronnyhaase/10459724 to your computer and use it in GitHub Desktop.
isString
function isString(obj) {
return Object.prototype.toString.call(obj) === "[object String]";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment