Permalink
Browse files

Merge pull request #4 from matthewp/master

Special case using the String constructor
  • Loading branch information...
2 parents a7abf06 + 5d50c1d commit 1f1ea8522537d9decd5ab79a9d780bd38414c926 @tj tj committed Jan 16, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.js
View
@@ -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';

0 comments on commit 1f1ea85

Please sign in to comment.