From 8fdad6a617c234664b6c68bf4a3c1f13959990ed Mon Sep 17 00:00:00 2001 From: davetayls Date: Sat, 17 Jan 2015 11:12:53 +0000 Subject: [PATCH 1/2] add reduce with ObjectIterator --- underscore/underscore.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/underscore/underscore.d.ts b/underscore/underscore.d.ts index 8cf92df12b..a6d48b759a 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -179,6 +179,12 @@ interface UnderscoreStatic { memo?: TResult, context?: any): TResult; + reduce( + list: _.Collection, + iterator: _.ObjectIterator, + memo?: TResult, + context?: any): TResult; + /** * @see _.reduce **/ From 9392f83f5949756c92859ade6e9c8e70f188b629 Mon Sep 17 00:00:00 2001 From: davetayls Date: Mon, 26 Jan 2015 10:15:43 +0000 Subject: [PATCH 2/2] use dictionary for reduce object list --- underscore/underscore.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/underscore/underscore.d.ts b/underscore/underscore.d.ts index a6d48b759a..aeaf253cad 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -180,7 +180,7 @@ interface UnderscoreStatic { context?: any): TResult; reduce( - list: _.Collection, + list: _.Dictionary, iterator: _.ObjectIterator, memo?: TResult, context?: any): TResult;