⌈⌋ ⎇ branch:  Bitrhythm


Artifact Content

Artifact a99c32bb39502359a10c46ec36338a32ce9a14110700654a0e926f41d16f68a0:


/**
 * Check if a DOM node is an svg tag or part of an svg
 * @param   { HTMLElement }  el - node we want to test
 * @returns {Boolean} true if it's an svg node
 */
export default function isSvg(el) {
  const owner = el.ownerSVGElement
  return !!owner || owner === null
}