diff --git a/lodash.js b/lodash.js index 14d3ea987..f054783d4 100644 --- a/lodash.js +++ b/lodash.js @@ -277,9 +277,11 @@ var index = -1, length = array.length, first = array[0], + mid = array[(length / 2) | 0], last = array[length - 1]; - if (first && typeof first == 'object' && last && typeof last == 'object') { + if (first && typeof first == 'object' && + mid && typeof mid == 'object' && last && typeof last == 'object') { return false; } var cache = getObject();