commerce/lib/click-outside/is-in-dom.js
2020-12-02 13:16:30 -03:00

4 lines
79 B
JavaScript

export default function isInDom(obj) {
return Boolean(obj.closest('body'))
}