Verify that the value is of the type specified Type can be either a string, or a constructor.
If a string, then it can match either the typeof result or 'null' for null values, or the name property of the object's constructor.
typeof
null
name
Verify that the value is of the type specified Type can be either a string, or a constructor.
If a string, then it can match either the
typeofresult or 'null' fornullvalues, or thenameproperty of the object's constructor.