fn has_type<T>(&self) -> bool
    where
        T: JsCast,
    {
        T::is_type_of(self.as_ref())
    }
/// Test whether this JS value has a type `T`.
///
/// This method will dynamically check to see if this JS object can be
/// casted to the JS object of type `T`. Usually this uses the `instanceof`
/// operator. This also works with primitive types like
/// booleans/strings/numbers as well as cross-realm object like `Array`
/// which can originate from other iframes.
///
/// In general this is intended to be a more robust version of
/// `is_instance_of`, but if you want strictly the `instanceof` operator
/// it's recommended to use that instead.
Test whether this JS value has a type `T`.
This method will dynamically check to see if this JS object can be
casted to the JS object of type `T`. Usually this uses the `instanceof`
operator. This also works with primitive types like
booleans/strings/numbers as well as cross-realm object like `Array`
which can originate from other iframes.

In general this is intended to be a more robust version of
`is_instance_of`, but if you want strictly the `instanceof` operator
it's recommended to use that instead.
Test whether this JS value has a type ` T ` . This method will dynamically check to see if this JS object can be casted to the JS object of type ` T ` . Usually this uses the ` instanceof ` operator . This also works with primitive types like booleans / strings / numbers as well as cross - realm object like ` Array ` which can originate from other iframes . In general this is intended to be a more robust version of ` is_instance_of ` but if you want strictly the ` instanceof ` operator it ' s recommended to use that instead .
fn has_type<T>(&self) -> bool
    where
        T: JsCast,
    {
        T::is_type_of(self.as_ref())
    }
fn has_type < T > ( & self ) -> bool where T : JsCast , { T :: is_type_of ( self . as_ref ( ) ) }
Test whether this JS value has a type `T`.
Test whether this JS value has a type ` T ` .
&self
&self