Edit It: Use the function as a constructor and a regular function
This code shows how to use a function as a constructor and a regular function.
See it on StackBlitzThis code shows how to use a function as a constructor and a regular function.
See it on StackBlitz