You can use the isNaN
function from lodash by first installing lodash with a package manager like npm:
index.tsx19 chars2 lines
Then, you can import it in your JavaScript code:
index.tsx148 chars6 lines
The _.isNaN()
function, like the built-in Number.isNaN()
function, returns true
if the given value is NaN
, and false
otherwise.
gistlibby LogSnag