mirror of
https://github.com/vercel/commerce.git
synced 2025-03-26 23:44:33 +00:00
6 lines
148 B
JavaScript
6 lines
148 B
JavaScript
import isInDOM from './is-in-dom'
|
|
|
|
export default function hasParent(element, root) {
|
|
return root && root.contains(element) && isInDOM(element)
|
|
}
|