Methods
isSvg(value) → {Boolean}
Returns if a value is an SVG element.
Parameters:
Name | Type | Description |
---|---|---|
value |
* | the value to check |
Returns:
true if value is an SVG element
- Type
- Boolean
Example
if( isSvg(target) ){
target.querySelectorAll('path').remove();
}