mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Bump to v3.10.0.
This commit is contained in:
@@ -2,6 +2,9 @@ var baseIndexOf = require('./baseIndexOf'),
|
||||
cacheIndexOf = require('./cacheIndexOf'),
|
||||
createCache = require('./createCache');
|
||||
|
||||
/** Used as the size to enable large array optimizations. */
|
||||
var LARGE_ARRAY_SIZE = 200;
|
||||
|
||||
/**
|
||||
* The base implementation of `_.difference` which accepts a single array
|
||||
* of values to exclude.
|
||||
@@ -21,7 +24,7 @@ function baseDifference(array, values) {
|
||||
var index = -1,
|
||||
indexOf = baseIndexOf,
|
||||
isCommon = true,
|
||||
cache = (isCommon && values.length >= 200) ? createCache(values) : null,
|
||||
cache = (isCommon && values.length >= LARGE_ARRAY_SIZE) ? createCache(values) : null,
|
||||
valuesLength = values.length;
|
||||
|
||||
if (cache) {
|
||||
|
||||
Reference in New Issue
Block a user