💾node.isInPage
💾 replit: node.isInPage
// 🔸 node.isInPage
Object.defineProperty(Node.prototype, 'isInPage', {
get() { return document.body.contains(this) }
});
Last updated
Was this helpful?
💾 replit: node.isInPage
// 🔸 node.isInPage
Object.defineProperty(Node.prototype, 'isInPage', {
get() { return document.body.contains(this) }
});
Last updated
Was this helpful?