diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 7b6be179f2..639cf83643 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -6837,10 +6837,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 9cd18ba018..f8d42c9589 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -10755,6 +10755,13 @@ declare module _ { isPlainObject(): boolean; } + interface LoDashExplicitWrapperBase { + /** + * see _.isPlainObject + */ + isPlainObject(): LoDashExplicitWrapper; + } + //_.isRegExp interface LoDashStatic { /**