diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 2cbec6853..e37c827ed 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -1172,6 +1172,12 @@ result = _(Array.prototype.push).isNative(); result = _.isTypedArray([]); result = _([]).isTypedArray(); +// _.isUndefined +result = _.isUndefined(any); +result = _(1).isUndefined(); +result = _([]).isUndefined(); +result = _({}).isUndefined(); + // _.lt result = _.lt(1, 2); result = _(1).lt(2); @@ -1431,8 +1437,6 @@ result = _.isRegExp(/moe/); result = _.isString('moe'); -result = _.isUndefined(void 0); - result = _.keys({ 'one': 1, 'two': 2, 'three': 3 }); result = _({ 'one': 1, 'two': 2, 'three': 3 }).keys().value(); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index c088f5459..2c2220238 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -6177,6 +6177,23 @@ declare module _ { isTypedArray(): boolean; } + //_.isUndefined + 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; + } + + interface LoDashWrapperBase { + /** + * see _.isUndefined + */ + isUndefined(): boolean; + } + //_.lt interface LoDashStatic { /** @@ -7056,16 +7073,6 @@ declare module _ { isString(value?: any): boolean; } - //_.isUndefined - interface LoDashStatic { - /** - * Checks if value is undefined. - * @param value The value to check. - * @return True if the value is undefined, else false. - **/ - isUndefined(value?: any): boolean; - } - //_.keys interface LoDashStatic { /**