mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Adjust stackSet array length check to be consistent with others like it.
This commit is contained in:
@@ -1986,7 +1986,7 @@
|
|||||||
array = data.array;
|
array = data.array;
|
||||||
|
|
||||||
if (array) {
|
if (array) {
|
||||||
if (array.length < LARGE_ARRAY_SIZE) {
|
if (array.length < (LARGE_ARRAY_SIZE - 1)) {
|
||||||
assocSet(array, key, value);
|
assocSet(array, key, value);
|
||||||
} else {
|
} else {
|
||||||
data.array = null;
|
data.array = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user