From 43f03d167191ec09a04859654ac19b33256a266f Mon Sep 17 00:00:00 2001 From: Genadi Samokovarov Date: Tue, 1 May 2012 20:29:10 +0300 Subject: [PATCH] Small whitespace cleanup for _.times and an anonymous function definition. --- underscore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/underscore.js b/underscore.js index 478a6b7bc..f98d56c47 100644 --- a/underscore.js +++ b/underscore.js @@ -381,7 +381,7 @@ var results = []; // The `isSorted` flag is irrelevant if the array only contains two elements. if (array.length < 3) isSorted = true; - _.reduce(initial, function (memo, value, index) { + _.reduce(initial, function(memo, value, index) { if (isSorted ? _.last(memo) !== value || !memo.length : !_.include(memo, value)) { memo.push(value); results.push(array[index]); @@ -888,7 +888,7 @@ }; // Run a function **n** times. - _.times = function (n, iterator, context) { + _.times = function(n, iterator, context) { for (var i = 0; i < n; i++) iterator.call(context, i); };