2219404d5401b2edae50e504f6c04b43e9bab22f
[platform/framework/web/crosswalk-tizen.git] /
1 define(['./isNumber', '../number/isNaN'], function (isNumber, $isNaN) {
2
3     /**
4      * Check if value is NaN for realz
5      */
6     function isNaN(val){
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));
11     }
12
13     return isNaN;
14
15 });