remove-elements

0.1.0 • Public • Published

remove-elements

Removes elements from the DOM by CSS selector. Very simple but helps reduce a bit of boilerplate and might spare somebody some Googling if they forget.

Uses https://github.com/hughsk/remove-element by @hughsk

testling badge

Usage

remove-elements

remove(cssSelectorString, [scope])

Removes all matching elements from the DOM, if they are attached. If scope is defined it uses scope.querySelectorAll otherwise document.querySelectorAll.

License

BSD

Readme

Keywords

none

Package Sidebar

Install

npm i remove-elements

Weekly Downloads

0

Version

0.1.0

License

BSD

Last publish

Collaborators

  • maxogden