Skip to content

Instantly share code, notes, and snippets.

@afahy
Created November 12, 2009 21:04
Show Gist options
  • Save afahy/233277 to your computer and use it in GitHub Desktop.
Save afahy/233277 to your computer and use it in GitHub Desktop.
Checks if arg is string
(function($){
// check if arg is a string
$.extend($, {
isString: function(s){
return (typeof s == "string" || s instanceof String)
}
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment