diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 7fbbcf3c6..9438b18fc 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -419,6 +419,7 @@ result = _.min(stoogesAges, function (stooge) { return stooge.age; result = _.min(stoogesAges, 'age'); result = _.pluck(stoogesAges, 'name'); +result = _(stoogesAges).pluck('name').value(); interface ABC { [index: string]: number; diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 4cfeea09a..ab4fdd02a 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -3444,6 +3444,22 @@ declare module _ { property: string): any[]; } + interface LoDashArrayWrapper { + /** + * @see _.pluck + **/ + pluck( + property: string): LoDashArrayWrapper; + } + + interface LoDashObjectWrapper { + /** + * @see _.pluck + **/ + pluck( + property: string): LoDashArrayWrapper; + } + //_.reduce interface LoDashStatic { /**