async function someFunction() {
try {
await Promise.all([
trendingsSlide.forEach((val) => {
axios(
`https://api.themoviedb.org/3/movie/${val}?api_key=${api}`
);
}),
]).then((val) => {
console.log(val);
});
} catch (err) {
console.log(err);
}
}
someFunction();
Why The response is undefined, I tried a lot to fix the problem but it is not working