๐Ÿ’พnode.isInPage

๐Ÿ’พ replit: node.isInPage

// ๐Ÿ”ธ node.isInPage
Object.defineProperty(Node.prototype, 'isInPage', {
    get() { return document.body.contains(this) }
});

Last updated

Was this helpful?