|
|
|
|
|
by edd
6062 days ago
|
|
For reference for anyone else who doesn't know how this should be done correctly (I had to go and look at the dojo source). dojo.isString = function(/*anything*/ it){
// summary:
// Return true if it is a String
return (typeof it == "string" || it instanceof String); // Boolean
}
|
|
So the Google function correctly returns whether String(foo) is a no-op.