Javascript – Dynamically generating Accessor and Mutation methods
This is a neat trick I picked up the other day, you can create a dynamic class which takes in a set of properties in the constructor and dynamically generates Accessor and/or Mutation methods (you just have to choose which lines to leave out): In your calling code, you can then create a new class …
Javascript – Dynamically generating Accessor and Mutation methods Read More »