mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Bump to v4.6.0.
This commit is contained in:
@@ -10,8 +10,7 @@ import setToArray from './_setToArray';
|
||||
* @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);
|
||||
}
|
||||
|
||||
export default cloneSet;
|
||||
|
||||
Reference in New Issue
Block a user