From 9c3f7251d5c3860035fe87b485ea9121aacd0f00 Mon Sep 17 00:00:00 2001 From: Brian Zengel Date: Sun, 20 Oct 2013 17:07:21 -0400 Subject: [PATCH] added _.isUndefined definition --- lodash/lodash-tests.ts | 2 ++ lodash/lodash.d.ts | 14 ++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) 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 *