Permalink
Browse files

lowercasing NaN to nan

  • Loading branch information...
1 parent 8cbd45b commit c817cb80b5781a3a360b9f0bbc532bcefd548a13 Dominic Barnes committed Jan 13, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.js
  2. +1 −1 test/tests.js
View
@@ -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();
View
@@ -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(){

0 comments on commit c817cb8

Please sign in to comment.