diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index c9c37c433..6ee7ad464 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -533,6 +533,9 @@ result = _(['banana', 'strawberry', 'apple']).sortBy('length').value() result = _.where(stoogesCombined, { 'age': 40 }); result = _.where(stoogesCombined, { 'quotes': ['Poifect!'] }); +result = _(stoogesCombined).where({ 'age': 40 }).value(); +result = _(stoogesCombined).where({ 'quotes': ['Poifect!'] }).value(); + /************* * Functions * *************/ diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index e355330a0..053787bd8 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -4418,6 +4418,13 @@ declare module _ { properties: U): T[]; } + interface LoDashArrayWrapper { + /** + * @see _.where + **/ + where(properties: U): LoDashArrayWrapper; + } + /************* * Functions * *************/