mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v3.10.0.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
var SetCache = require('./SetCache'),
|
||||
constant = require('../utility/constant'),
|
||||
getNative = require('./getNative');
|
||||
|
||||
/** Native method references. */
|
||||
@@ -15,8 +14,8 @@ var nativeCreate = getNative(Object, 'create');
|
||||
* @param {Array} [values] The values to cache.
|
||||
* @returns {null|Object} Returns the new cache object if `Set` is supported, else `null`.
|
||||
*/
|
||||
var createCache = !(nativeCreate && Set) ? constant(null) : function(values) {
|
||||
return new SetCache(values);
|
||||
};
|
||||
function createCache(values) {
|
||||
return (nativeCreate && Set) ? new SetCache(values) : null;
|
||||
}
|
||||
|
||||
module.exports = createCache;
|
||||
|
||||
Reference in New Issue
Block a user