Im currently playing around with fetch and was wondering how i can make the callbacks a bit cleaner but still use arrow function. For example i want to make a loop on the success. What syntax should i use?
Code
fetch(url).then(res => res.json())
.then(data => console.log(data.items))
.catch(e => console.log('error'))