Last active
October 3, 2021 11:42
-
-
Save TheRolfFR/c437fed78003fcbd4ed567277e833ffe to your computer and use it in GitHub Desktop.
Simply remove the element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simply remove the element | |
* @author TheRolf | |
*/ | |
Element.prototype.remove = function() { | |
this.parentElement.removeChild(this) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment