7 ms·
Every JS dependency injection framework that I've ever seen uses it.
Every JS dependency injection framework that I've ever seen uses it.
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.
Serious question: why use a dependency injection framework with JS?