diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 77a20e2e2b..5544a0b98f 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -6106,10 +6106,24 @@ module TestIsObject { } // _.isPlainObject -result = _.isPlainObject(any); -result = _(1).isPlainObject(); -result = _([]).isPlainObject(); -result = _({}).isPlainObject(); +module TestIsPlainObject { + { + let result: boolean; + + result = _.isPlainObject(any); + result = _(1).isPlainObject(); + result = _([]).isPlainObject(); + result = _({}).isPlainObject(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(1).chain().isPlainObject(); + result = _([]).chain().isPlainObject(); + result = _({}).chain().isPlainObject(); + } +} // _.isRegExp module TestIsRegExp { diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index c45ec90eea..0214c2d96e 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -10154,6 +10154,13 @@ declare module _ { isPlainObject(): boolean; } + interface LoDashExplicitWrapperBase { + /** + * see _.isPlainObject + */ + isPlainObject(): LoDashExplicitWrapper; + } + //_.isRegExp interface LoDashStatic { /**