Javascript – Request limited amount of endpoints at once
I tried to write a function that requests only limited amount of mock endpoints at one time. As soon as one request is resolved, the next one is fetching. Here is my code: const requestQueue = (endpoints, callback, limit =…