I am really trying to distinguish (in my code) functions and classes.
I need to know in a simple console.log if the parameter of my function is a class or a simple function.
I really do the class, not the object, but really the class.
how
function(item){ if(isClass(item)){ console.log('it sa class !'); }else{ if(isFunc(item)){ console.log('it sa function !'); } } }
Edit: angular 2 can distinguish between function and class in the container class of the injector
javascript
mfrachet
source share