source: trip-planner-front/node_modules/lodash/_setToArray.js@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 345 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
18module.exports = setToArray;
Note: See TracBrowser for help on using the repository browser.