diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index bf7f77431..da2302b0a 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -629,6 +629,9 @@ result = _.isNaN(NaN); result = _.isNaN(new Number(NaN)); result = _.isNaN(undefined); +result = _.isNull(null); +result = _.isNull(undefined); + var mergeNames = { 'stooges': [ { 'name': 'moe' }, diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 7b6792b45..5ae120b8d 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2443,6 +2443,13 @@ declare module _ { **/ export function isNaN(value: any): boolean; + /** + * Checks if value is null. + * @param value The value to check. + * @return True if the value is null, else false. + **/ + export function isNull(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 @@ -2691,13 +2698,6 @@ declare module _ { **/ export function isRegExp(object: any): boolean; - /** - * Returns true if the value of object is null. - * @param object Check if this object is null. - * @return True if `object` is null, otherwise false. - **/ - export function isNull(object: any): boolean; - /** * Returns true if value is undefined. * @param object Check if this object is undefined.