From 846e813c9954cb759b55cc797d2d338fd4f63460 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 13 Jan 2016 03:45:15 -0800 Subject: [PATCH] Ensure `each` and `eachRight` have the correct chain behavior. --- lodash.js | 4 ++-- test/index.html | 2 +- test/test.js | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index 106f359bf..6b66d7f90 100644 --- a/lodash.js +++ b/lodash.js @@ -13988,8 +13988,6 @@ lodash.zipWith = zipWith; // Add aliases. - lodash.each = forEach; - lodash.eachRight = forEachRight; lodash.extend = assignIn; lodash.extendWith = assignInWith; @@ -14132,6 +14130,8 @@ lodash.upperFirst = upperFirst; // Add aliases. + lodash.each = forEach; + lodash.eachRight = forEachRight; lodash.first = head; mixin(lodash, (function() { diff --git a/test/index.html b/test/index.html index 00cadc606..047437f2b 100644 --- a/test/index.html +++ b/test/index.html @@ -22,7 +22,7 @@ }; } - + diff --git a/test/test.js b/test/test.js index 8a6b59cca..b2278a9a5 100644 --- a/test/test.js +++ b/test/test.js @@ -5748,6 +5748,8 @@ ]; var unwrappedMethods = [ + 'each', + 'eachRight', 'every', 'find', 'findIndex',