From 4446fb13a3af904f1cfb1d8c7b52c1e2e76850be Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 27 Aug 2016 15:46:40 -0700 Subject: [PATCH] Change postfix increment operators to prefix. --- lodash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 0a560b5d2..e5239d497 100644 --- a/lodash.js +++ b/lodash.js @@ -1082,7 +1082,7 @@ while (length--) { if (array[length] === placeholder) { - result++; + ++result; } } return result; @@ -1346,7 +1346,7 @@ function unicodeSize(string) { var result = reUnicode.lastIndex = 0; while (reUnicode.test(string)) { - result++; + ++result; } return result; }