My code is this below. Although I expect one array return from API, it always show two arrays, each field with 10 users in console.
const fetchData = async () => {
const response = await fetch("https://jsonplaceholder.typicode.com/users");
const data = await response.json();
console.log(data);
};
fetchData();