Skip to content

Commit

Permalink
lowercasing NaN to nan
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Barnes committed Jan 13, 2014
1 parent 8cbd45b commit c817cb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -23,7 +23,7 @@ module.exports = function(val){

if (val === null) return 'null';
if (val === undefined) return 'undefined';
if (val !== val) return 'NaN';
if (val !== val) return 'nan';
if (val && val.nodeType === 1) return 'element';

return typeof val.valueOf();
Expand Down
2 changes: 1 addition & 1 deletion test/tests.js
Expand Up @@ -17,7 +17,7 @@ describe('type', function(){
});

it('should match NaN', function () {
assert('NaN' === type(NaN));
assert('nan' === type(NaN));
});

it('should match strings', function(){
Expand Down

0 comments on commit c817cb8

Please sign in to comment.