The values() method of a Set returns an iterator object that contains the values in the set in insertion order.

    
    const months = new Set(['Jan', 'Feb', 'March']);

    // iterator object
    const monthsValues = months.values();

    for (const month of monthsValues) {
      console.log(month);
    }
    // "Jan"
    // "Feb"
    // "March"