⌈⌋ ⎇ branch:  Bitrhythm


Artifact Content

Artifact ef08a0e3535006dd3895a080c8a71ef978187e8090b33ec69ff0f10c0327a622:


/**
 * Get the value of any DOM attribute on a node
 * @param   { Object } dom - DOM node we want to parse
 * @param   { String } name - name of the attribute we want to get
 * @returns { String | undefined } name of the node attribute whether it exists
 */
export default function getAttribute(dom, name) {
  return dom.getAttribute(name)
}