source: imaps-frontend/node_modules/lodash-es/_setToArray.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 343 bytes
Line 
1/**
2 * Converts `set` to an array of its values.
3 *
4 * @private
5 * @param {Object} set The set to convert.
6 * @returns {Array} Returns the values.
7 */
8function setToArray(set) {
9 var index = -1,
10 result = Array(set.size);
11
12 set.forEach(function(value) {
13 result[++index] = value;
14 });
15 return result;
16}
17
18export default setToArray;
Note: See TracBrowser for help on using the repository browser.