getParents = $el => {

    // Set up a parent array
    let parents = []

    // Push each parent element to the array
    for (; $el && $el !== document; $el = $el.parentNode) {
        parents.push($el)
    }

    // Return our parent array
    return parents
}
Returns an array containing all the parent nodes of the given node
@param  {HTMLElement}    $el     - DOM Element
@return {array}          parent nodes