mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Fix large array optimization in baseDifference.
This commit is contained in:
4
dist/lodash.compat.js
vendored
4
dist/lodash.compat.js
vendored
@@ -1319,7 +1319,7 @@
|
||||
length = array ? array.length : 0,
|
||||
result = [];
|
||||
|
||||
if (createCache && indexOf === baseIndexOf && length >= LARGE_ARRAY_SIZE) {
|
||||
if (createCache && values && indexOf === baseIndexOf && values.length >= LARGE_ARRAY_SIZE) {
|
||||
indexOf = cacheIndexOf;
|
||||
values = createCache(values);
|
||||
}
|
||||
@@ -7514,7 +7514,7 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
// expose Lo-Dash
|
||||
// export Lo-Dash
|
||||
var _ = runInContext();
|
||||
|
||||
// some AMD build optimizers like r.js check for condition patterns like the following:
|
||||
|
||||
Reference in New Issue
Block a user