I have recently started an Angular project.
This question is how to refactor 4 simple functions (which do the same thing) in typescript to make it into 1 function. Th