Bump to v4.17.0.

This commit is contained in:
John-David Dalton
2016-11-13 22:50:13 -08:00
parent 39e6c50f72
commit 9849321273
64 changed files with 743 additions and 593 deletions

View File

@@ -2,6 +2,9 @@ var addSetEntry = require('./_addSetEntry'),
arrayReduce = require('./_arrayReduce'),
setToArray = require('./_setToArray');
/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1;
/**
* Creates a clone of `set`.
*
@@ -12,7 +15,7 @@ var addSetEntry = require('./_addSetEntry'),
* @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);
}