#How do I check whether a variable is a class constructor or a function?
1 messages · Page 1 of 1 (latest)
IIRC there's no simple way to check that at runtime: https://stackoverflow.com/questions/40922531/how-to-check-if-a-javascript-function-is-a-constructor
I would suggest changing myVar, depending on how you want to use it later.
I see, thank you