4 ms·
You could have used async/await and fetch along with a polyfill if you are concerned about compatibility with older browsers. ;-)
by goldenkey 5y ago
You could have used async/await and fetch along with a polyfill if you are concerned about compatibility with older browsers. ;-)
- Zababa 5y agoMaybe that's just me but I find the async/await stuff way harder to understand than a simple callback. Sure when you're going through callback hell you're glad to have promises and the syntaxic sugar, but for simple things the callback makes sense, especially since it's already how you use map and filter in JS.