diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index cff8a443d8..d095bb9122 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -316,17 +316,17 @@ result = _.filter([1, 2, 3, 4, 5, 6], function(num) { return num % 2 = result = _.filter(foodsCombined, 'organic'); result = _.filter(foodsCombined, { 'type': 'fruit' }); - result = _([1, 2, 3, 4, 5, 6]).filter(function(num) { return num % 2 == 0; }); - result = _(foodsCombined).filter('organic'); - result = _(foodsCombined).filter({ 'type': 'fruit' }); + result = _([1, 2, 3, 4, 5, 6]).filter(function(num) { return num % 2 == 0; }).value(); + result = _(foodsCombined).filter('organic').value(); + result = _(foodsCombined).filter({ 'type': 'fruit' }).value(); result = _.select([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; }); result = _.select(foodsCombined, 'organic'); result = _.select(foodsCombined, { 'type': 'fruit' }); - result = _([1, 2, 3, 4, 5, 6]).select(function(num) { return num % 2 == 0; }); - result = _(foodsCombined).select('organic'); - result = _(foodsCombined).select({ 'type': 'fruit' }); + result = _([1, 2, 3, 4, 5, 6]).select(function(num) { return num % 2 == 0; }).value(); + result = _(foodsCombined).select('organic').value(); + result = _(foodsCombined).select({ 'type': 'fruit' }).value(); result = _.find([1, 2, 3, 4], function(num) { return num % 2 == 0; diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 92095acc83..b8e59dc72b 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -1413,42 +1413,42 @@ declare module _ { **/ filter( callback: ListIterator, - thisArg?: any): T[]; + thisArg?: any): LoDashArrayWrapper; /** * @see _.filter * @param pluckValue _.pluck style callback **/ filter( - pluckValue: string): T[]; + pluckValue: string): LoDashArrayWrapper; /** * @see _.filter * @param pluckValue _.pluck style callback **/ filter( - whereValue: W): T[]; + whereValue: W): LoDashArrayWrapper; /** * @see _.filter **/ select( callback: ListIterator, - thisArg?: any): T[]; + thisArg?: any): LoDashArrayWrapper; /** * @see _.filter * @param pluckValue _.pluck style callback **/ select( - pluckValue: string): T[]; + pluckValue: string): LoDashArrayWrapper; /** * @see _.filter * @param pluckValue _.pluck style callback **/ select( - whereValue: W): T[]; + whereValue: W): LoDashArrayWrapper; } //_.find