Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Need to use toString check for strings.

typeof new String("foo") === 'object'
  • Loading branch information...
commit 5d50c1dc788c5aa1eed8691e61384f8aadcca182 1 parent a7abf06
@matthewp matthewp authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  index.js
1  index.js
@@ -20,6 +20,7 @@ module.exports = function(val){
case '[object RegExp]': return 'regexp';
case '[object Arguments]': return 'arguments';
case '[object Array]': return 'array';
+ case '[object String]': return 'string';
if (val === null) return 'null';
Please sign in to comment.
Something went wrong with that request. Please try again.