Bump to v4.17.0.

This commit is contained in:
John-David Dalton
2016-11-13 22:50:00 -08:00
parent 50aaa95bca
commit b1ff59b3ea
61 changed files with 348 additions and 242 deletions

View File

@@ -2,6 +2,9 @@ import addSetEntry from './_addSetEntry.js';
import arrayReduce from './_arrayReduce.js';
import setToArray from './_setToArray.js';
/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1;
/**
* Creates a clone of `set`.
*
@@ -12,7 +15,7 @@ import setToArray from './_setToArray.js';
* @returns {Object} Returns the cloned set.
*/
function cloneSet(set, isDeep, cloneFunc) {
var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
var array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set);
return arrayReduce(array, addSetEntry, new set.constructor);
}