1//map() methods returns a new array
2const data = {name: "laptop", brands: ["dell", "acer", "asus"]}
3let inside_data = data.brands.map((i) => {
4 console.log(i); //dell acer asus
5});
1
2
3
4
5 console.log(typeof(userRoles)); // object
6console.log(userRoles instanceof Map); // true