Created
November 12, 2009 21:04
-
-
Save afahy/233277 to your computer and use it in GitHub Desktop.
Checks if arg is string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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