first commit
This commit is contained in:
11
node_modules/motion-dom/dist/es/utils/is-html-element.mjs
generated
vendored
Normal file
11
node_modules/motion-dom/dist/es/utils/is-html-element.mjs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { isObject } from 'motion-utils';
|
||||
|
||||
/**
|
||||
* Checks if an element is an HTML element in a way
|
||||
* that works across iframes
|
||||
*/
|
||||
function isHTMLElement(element) {
|
||||
return isObject(element) && "offsetHeight" in element;
|
||||
}
|
||||
|
||||
export { isHTMLElement };
|
||||
Reference in New Issue
Block a user