MCPcopy Create free account
hub / github.com/RubyLouvre/anu / setToArray

Function setToArray

test/babel.js:10298–10306  ·  view source on GitHub ↗

* Converts `set` to an array of its values. * * @private * @param {Object} set The set to convert. * @returns {Array} Returns the values.

(set)

Source from the content-addressed store, hash-verified

10296 * @returns {Array} Returns the values.
10297 */
10298 function setToArray(set) {
10299 var index = -1,
10300 result = Array(set.size);
10301
10302 set.forEach(function (value) {
10303 result[++index] = value;
10304 });
10305 return result;
10306 }
10307
10308 module.exports = setToArray;
10309

Callers 3

baseUniqFunction · 0.85
cloneSetFunction · 0.85
babel.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected