mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Remove semicolons.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import addSetEntry from './addSetEntry.js';
|
||||
import arrayReduce from './arrayReduce.js';
|
||||
import setToArray from './setToArray.js';
|
||||
import addSetEntry from './addSetEntry.js'
|
||||
import arrayReduce from './arrayReduce.js'
|
||||
import setToArray from './setToArray.js'
|
||||
|
||||
/** Used to compose bitmasks for cloning. */
|
||||
const CLONE_DEEP_FLAG = 1;
|
||||
const CLONE_DEEP_FLAG = 1
|
||||
|
||||
/**
|
||||
* Creates a clone of `set`.
|
||||
@@ -15,8 +15,8 @@ const CLONE_DEEP_FLAG = 1;
|
||||
* @returns {Object} Returns the cloned set.
|
||||
*/
|
||||
function cloneSet(set, isDeep, cloneFunc) {
|
||||
const array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set);
|
||||
return arrayReduce(array, addSetEntry, new set.constructor);
|
||||
const array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set)
|
||||
return arrayReduce(array, addSetEntry, new set.constructor)
|
||||
}
|
||||
|
||||
export default cloneSet;
|
||||
export default cloneSet
|
||||
|
||||
Reference in New Issue
Block a user