1 define(['./isNumber', '../number/isNaN'], function (isNumber, $isNaN) {
4 * Check if value is NaN for realz
7 // based on the fact that NaN !== NaN
8 // need to check if it's a number to avoid conflicts with host objects
9 // also need to coerce ToNumber to avoid edge case `new Number(NaN)`
10 return !isNumber(val) || $isNaN(Number(val));