From 4dd4c1d2cd307e60764b7d8833cd2444c01e46e9 Mon Sep 17 00:00:00 2001 From: Kenan Yildirim Date: Tue, 25 Mar 2014 18:04:28 -0400 Subject: [PATCH] Prefer exporting a named function --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a8527b9..20b60a4 100644 --- a/index.js +++ b/index.js @@ -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; -} \ No newline at end of file +} + +module.exports = isNaN; \ No newline at end of file