The keys() method of a Set returns an iterator object that contains the values in the set in insertion order. It is an alias for values().
const months = new Set(['Jan', 'Feb', 'March']);
// iterator object
const monthsKeys = months.keys();
for (const month of monthsKeys) {
console.log(month);
}
// "Jan"
// "Feb"
// "March"