diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 1afd48597..af780c051 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -6103,10 +6103,25 @@ module TestIsTypedArray { } // _.isUndefined -result = _.isUndefined(any); -result = _(1).isUndefined(); -result = _([]).isUndefined(); -result = _({}).isUndefined(); +module TestIsUndefined { + { + let result: boolean; + + result = _.isUndefined(any); + + result = _(1).isUndefined(); + result = _([]).isUndefined(); + result = _({}).isUndefined(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(1).chain().isUndefined(); + result = _([]).chain().isUndefined(); + result = _({}).chain().isUndefined(); + } +} // _.lt module TestLt { diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index cc5dea119..2e7bab18c 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -10191,9 +10191,10 @@ declare module _ { interface LoDashStatic { /** * Checks if value is undefined. + * * @param value The value to check. * @return Returns true if value is undefined, else false. - **/ + */ isUndefined(value: any): boolean; } @@ -10204,6 +10205,13 @@ declare module _ { isUndefined(): boolean; } + interface LoDashExplicitWrapperBase { + /** + * see _.isUndefined + */ + isUndefined(): LoDashExplicitWrapper; + } + //_.lt interface LoDashStatic { /**