/**
 * @since 6.0.0
 */ export function getHrefFromParents(parents) {
    return parents.reduce((result, parent)=>{
        if ("href" in parent && parent.href) {
            const { href } = parent;
            return result + href;
        }
        return result;
    }, "");
}

//# sourceMappingURL=getHrefFromParents.js.map