The Object fromEntries() static method creates an object from a list of key/value pairs.

    
    const places = [
        ["Athens", "Georgia"],
        ["Lansing", "Michigan"],
        ["Sacramento", "California"],
    ];

    const placesObjFromEntries = Object.fromEntries(places);

    console.log(placesObjFromEntries);
    // { Athens: "Georgia", Lansing: "Michigan", Sacramento: "California" }