The entries() method of a Set returns an iterator object that contains an array of [element, element] of each element in the set, in insertion order. Set objects have no keys like Map objects, so, to keep the entries() API similar, each item is an array of the value repeated.

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

    // iterator object
    const iterator = months.entries();

    // for of over iterable object
    for (const month of iterator) {
      console.log(month);
    }
    // ["Jan", "Jan"]
    // ["Feb", "Feb"]
    // ["March", "March"]