Dependency Rejection in JavaScript

Someone I highly respect forwarded me this article by Mark Seemann, “From dependency injection to dependency rejection”. I wanted to help make the article more accessible by translating the sample code as faithfully as possible to JavaScript, while keeping it easy enough to understand.

I hope I’ve done so. Here are Github gists for each part in the series.

Part 1:

Part 2:

Part 3:

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.