📜  地图对象 es6 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:41.735000             🧑  作者: Mango

代码示例2
//map() methods returns a new array
const data = {name: "laptop", brands: ["dell", "acer", "asus"]}
let inside_data = data.brands.map((i) => {
    console.log(i); //dell acer asus
});