ESLint Unexpected use of isNaN
2022-08-30 01:31:02
I'm trying to use the global function inside an arrow function in a Node.js module but I'm getting this error:isNaN
[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 style guide.