const usersData = [
{ "id": 0, "name": "ABC" },
{ "id": 1, "name": "XYZ" }
];
let dataList = [];
// How can I transfer the data from the user array to the dataList array?
// If I use the map function, do I need to initialize empty values for other fields in dataList?
If I want to move the user data array to dataList array how can I do that?
If I use map function then do I need to initialize empty data for other fields for dataList?