diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index ed1cf22c9..d7df716bd 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -651,6 +651,8 @@ result = _.isRegExp(/moe/); result = _.isString('moe'); +result = _.isUndefined(void 0); + var mergeNames = { 'stooges': [ { 'name': 'moe' }, diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index eea18ec90..07ba90a54 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2488,6 +2488,13 @@ declare module _ { **/ export function isString(value: any): boolean; + /** + * Checks if value is undefined. + * @param value The value to check. + * @return True if the value is undefined, else false. + **/ + export function isUndefined(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 @@ -2703,12 +2710,7 @@ declare module _ { - /** - * Returns true if value is undefined. - * @param object Check if this object is undefined. - * @return True if `object` is undefined, otherwise false. - **/ - export function isUndefined(value: any): boolean; + /* ********* * Utility *