ESLint Unexpected use of isNaN
I’m trying to use the isNaN global function inside an arrow function in a Node.js module but I’m getting this error: [eslint] Unexpected use of ‘isNaN’. (no-restricted-globals) This is my code: const isNumber = value => !isNaN(parseFloat(value)); module.exports = { isNumber, }; Any idea on what am I doing wrong? PS: I’m using the AirBnB … Read more