Namespace: Basic:isSvg

Basic:isSvg

Source:

Methods

isSvg(value) → {Boolean}

Returns if a value is an SVG element.

Parameters:
Name Type Description
value *

the value to check

Source:
Returns:
true if value is an SVG element
Type
Boolean
Example
if( isSvg(target) ){
  target.querySelectorAll('path').remove();
}