early return on fetch not working
https://pastebin.com/qev9yb1G
I have this code. On line 13 there's a return that doesn't work at all, it just continues barreling along until the last line and redirects me to an invalid URL if the criteria set at line 10-13 isn't met.
Does anyone know why? Thanks in advance.
Pastebin
1 - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
found it out, I was returning out of the function in my "forEach" loop. Out of scope return D:
This was my solution. Not good, but this works.