You can use instanceof as the following code:
var isVueComp = vuecomp instanceof Vue
If the value is isVueComptrue, it is not Vue.js componenteny, not.
You can also use vuecomp.prototype.constructor , which will return a reference to the constructor function of the object that created the instance object.
Check the fiddle .
source
share