added _.isNaN definition

This commit is contained in:
Brian Zengel
2013-10-20 16:42:03 -04:00
parent d5b2c968e0
commit 92587fb870
2 changed files with 14 additions and 9 deletions
+4
View File
@@ -625,6 +625,10 @@ result = <boolean>_.isFinite(Infinity);
result = <boolean>_.isFunction(_);
result = <boolean>_.isNaN(NaN);
result = <boolean>_.isNaN(new Number(NaN));
result = <boolean>_.isNaN(undefined);
var mergeNames = {
'stooges': [
{ 'name': 'moe' },
+10 -9
View File
@@ -2433,6 +2433,16 @@ declare module _ {
**/
export function isFunction(value: any): boolean;
/**
* Checks if value is NaN.
*
* Note: This is not the same as native isNaN which will return true for undefined and other
* non-numeric values. See http://es5.github.io/#x15.1.2.4.
* @param value The value to check.
* @return True if the value is NaN, else false.
**/
export function isNaN(value: any): boolean;
/**
* Recursively merges own enumerable properties of the source object(s), that don't resolve
* to undefined into the destination object. Subsequent sources will overwrite property
@@ -2681,15 +2691,6 @@ declare module _ {
**/
export function isRegExp(object: any): boolean;
/**
* Returns true if object is NaN.
* Note: this is not the same as the native isNaN function,
* which will also return true if the variable is undefined.
* @param object Check if this object is NaN.
* @return True if `object` is NaN, otherwise false.
**/
export function isNaN(object: any): boolean;
/**
* Returns true if the value of object is null.
* @param object Check if this object is null.