mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v4.6.0.
This commit is contained in:
@@ -10,8 +10,7 @@ var addSetEntry = require('./_addSetEntry'),
|
||||
* @returns {Object} Returns the cloned set.
|
||||
*/
|
||||
function cloneSet(set) {
|
||||
var Ctor = set.constructor;
|
||||
return arrayReduce(setToArray(set), addSetEntry, new Ctor);
|
||||
return arrayReduce(setToArray(set), addSetEntry, new set.constructor);
|
||||
}
|
||||
|
||||
module.exports = cloneSet;
|
||||
|
||||
Reference in New Issue
Block a user