1
0
mirror of https://github.com/vercel/commerce.git synced 2025-07-27 20:21:22 +00:00
Files
.vscode
assets
components
config
framework
lib
api
click-outside
click-outside.tsx
has-parent.js
index.ts
is-in-dom.js
hooks
colors.ts
focus-trap.tsx
get-slug.ts
range-map.ts
search.tsx
to-pixels.ts
usage-warns.ts
pages
public
.editorconfig
.env.template
.gitignore
.prettierignore
.prettierrc
README.md
codegen.json
commerce.config.json
global.d.ts
license.md
next-env.d.ts
next.config.js
package.json
postcss.config.js
tailwind.config.js
tsconfig.json
yarn.lock
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'))
}