From 0eaa10f578946611c45189582f1bf5aef1834ca6 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 4 Oct 2015 21:39:43 -0700 Subject: [PATCH] Adjust `stackSet` array length check to be consistent with others like it. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 113070b5b..52a3305c5 100644 --- a/lodash.js +++ b/lodash.js @@ -1986,7 +1986,7 @@ array = data.array; if (array) { - if (array.length < LARGE_ARRAY_SIZE) { + if (array.length < (LARGE_ARRAY_SIZE - 1)) { assocSet(array, key, value); } else { data.array = null;