JSPM

remove-element

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q38237F
  • License MIT

Removes an element from the DOM

Package Exports

  • remove-element

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remove-element) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

remove-element Flattr this!experimental

Removes an element from the DOM. Very simple – but helps reduce a bit of boilerplate and might spare somebody some Googling if they forget.

Usage

remove-element

remove(el)

Removes el from the DOM, if it's attached.

License

MIT. See LICENSE.md for details.