From 9b39fc5dfa3393cdfaffe7ff021ad5a3a382a1fd Mon Sep 17 00:00:00 2001 From: Josh Perez Date: Fri, 8 May 2015 22:42:01 -0700 Subject: [PATCH] Fix typo in var name --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 95e1bbe..e12fa98 100644 --- a/README.md +++ b/README.md @@ -556,7 +556,7 @@ var subtotalGetter = [ ['items'], function(items) { // items is of type `Immutable.List` - return items.reduce(function(total, items) { + return items.reduce(function(total, item) { return total + (item.get('price') * item.get('quantity')) }, 0) }