How to use Dependency Injection in Functional Programming
Dependency Injection is a technique to make the classes in Object Oriented Programming easier to test and configure. In this article we’ll show you how OOP uses DI to make the classes easier to test, then we’ll show the same technique in FP using JavaScript for both implementations. After reading this you’ll understand how to make your FP code easier to test and configure, just like you do in OOP style coding.
Tags: javascript, oop, functional, dependencyinjection