* Converts `set` to an array of its values. * * @private * @param {Object} set The set to convert. * @returns {Array} Returns the values.
(set)
| 272 | * @returns {Array} Returns the values. |
| 273 | */ |
| 274 | function setToArray(set) { |
| 275 | let index = -1; |
| 276 | |
| 277 | const result = Array(set.size); |
| 278 | |
| 279 | set.forEach(value => { |
| 280 | result[++index] = value; |
| 281 | }); |
| 282 | return result; |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Converts `string` to an array. |
nothing calls this directly
no outgoing calls
no test coverage detected