Skip to content

Commit

Permalink
Prefer exporting a named function
Browse files Browse the repository at this point in the history
  • Loading branch information
kenany committed Mar 25, 2014
1 parent 74c309a commit 4dd4c1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ var isNumber = require('is-number');
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if the `value` is `NaN`, else `false`.
*/
module.exports = function(value) {
function isNaN(value) {
return isNumber(value) && value != +value;
}
}

module.exports = isNaN;

0 comments on commit 4dd4c1d

Please sign in to comment.