Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _cloneSet.js
1 var addSetEntry = require('./_addSetEntry'),
2     arrayReduce = require('./_arrayReduce'),
3     setToArray = require('./_setToArray');
4
5 /**
6  * Creates a clone of `set`.
7  *
8  * @private
9  * @param {Object} set The set to clone.
10  * @returns {Object} Returns the cloned set.
11  */
12 function cloneSet(set) {
13   var Ctor = set.constructor;
14   return arrayReduce(setToArray(set), addSetEntry, new Ctor);
15 }
16
17 module.exports = cloneSet;