/** * Converts `set` to an array of its values. * * @private * @param {Object} set The set to convert. * @returns {Array} Returns the values. */functionsetToArray(set){varindex=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value;});returnresult;}module.exports=setToArray;