Skip to main content
Module

x/lodash_es/mod.ts>isNaN

lodash for deno use
Latest
function isNaN
import { isNaN } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

Checks if value is NaN.

Note: This method is based on Number.isNaN and is not the same as global isNaN which returns true for undefined and other non-number values.

Examples

_.isNaN(NaN); // => true

_.isNaN(new Number(NaN)); // => true

isNaN(undefined); // => true

_.isNaN(undefined); // => false

Parameters

value

The value to check.