Here I’m going to assume that you’ve seen topological sort before and just need a quick refresher. If you haven’t seen it before I think you can still get some value out of reading this.
This article has no other objective than to jumpstart your memory, sometimes you just need a quick little peek to get everything back in order. This is also intended as a personal quick reference for myself, a JS developer who sometimes struggles to find implementation of these types of problems in Javascript; thus I will attempt to keep these articles short and sweet.