isAttribute()
Attribute.isAttribute()
Attribute.isAttribute()
The method checks whether the value
of any type is the Wrap
instance of any or given opening
and closing
chars.
Name extends string
Value extends string
Parameters
value: any
name?: Name
Optional opening chars of a generic type variable Opening
to check if the given value
contains.
val?: Value
Optional closing chars of a generic type variable Closing
to check if the given value
contains.
Returns
value is Attribute<Name, Value>
The return value is a boolean
type indicating whether the value is an instance of Wrap
of any, or the given opening
, closing
, and text
.
Example usage
Last updated
Was this helpful?