diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 953d32d37..1bde585ab 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -469,10 +469,12 @@ result = _.size('curly'); result = _.some([null, 0, 'yes', false], Boolean); result = _.some(foodsCombined, 'organic'); result = _.some(foodsCombined, { 'type': 'meat' }); +result = _.some(foodsOrganic[0]); result = _.any([null, 0, 'yes', false], Boolean); result = _.any(foodsCombined, 'organic'); result = _.any(foodsCombined, { 'type': 'meat' }); +result = _.any(foodsOrganic[0]); result = _.sortBy([1, 2, 3], function (num) { return Math.sin(num); }); result = _.sortBy([1, 2, 3], function (num) { return this.sin(num); }, Math); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index cf227c25e..594f20973 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -3933,6 +3933,14 @@ declare module _ { callback?: ListIterator, thisArg?: any): boolean; + /** + * @see _.some + **/ + some( + collection: {}, + callback?: ListIterator<{}, boolean>, + thisArg?: any): boolean; + /** * @see _.some * @param pluckValue _.pluck style callback @@ -4005,6 +4013,14 @@ declare module _ { callback?: ListIterator, thisArg?: any): boolean; + /** + * @see _.some + **/ + any( + collection: {}, + callback?: ListIterator<{}, boolean>, + thisArg?: any): boolean; + /** * @see _.some * @param pluckValue _.pluck style callback