From 95e42c49162ed59a632447b56bd15282156a2b11 Mon Sep 17 00:00:00 2001 From: Kenneth Kolstad Date: Tue, 3 Jun 2014 10:26:07 -0700 Subject: [PATCH] Test for _.some with a non-dictionary/list argument --- lodash/lodash-tests.ts | 2 ++ 1 file changed, 2 insertions(+) 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);