💪YAAAS! Solved thread notifications! Used a combo of map(), for loop and Promise.all functions

One of those days where I feel like I'm a bit more aware of what I'm doing with Javascript than just copy-pasta, even though it's the first time I'm using a for() loop and Promise.all !

Here's how I think thread notifications work on high level:

1. GET request to API endpoint to fetch json data of all notifications for a particular post
2. Use map() to get only the commentAuthors in an array
3. Use for() to loop through the commentAuthors array to run axios POST requests to each commentAuthor (this sends a notif to each commentAuthor of the post)