I have two component:User,Admin. Now, after I call const user= < User/ >, how can I tell whether user is an instance of User or Admin
I have two component:User,Admin. Now, after I call const user= < User/ >, how can I tell whether user is an instance of User or Admin
through the following code
user.type.name