Hacker News new | ask | show | jobs
by draperp 3899 days ago
Every JS dependency injection framework that I've ever seen uses it.
2 comments

Serious question: why use a dependency injection framework with JS?
Yes, and that's widely been regarded as a mistake.

Now that we have ES6 imports and wide CommonJS support I don't see any good reason to use hacky DI with Function#toString.