dom-splice

`Array#splice` but for DOM `childNodes`.

Usage no npm install needed!

<script type="module">
  import domSplice from 'https://cdn.skypack.dev/dom-splice';
</script>

README

dom-splice

Array#splice but for DOM childNodes.

API

splice(parent, start, deleteCount[, item[, item2]])

Modifies the childNodes of the given parent at start, deleting the number of elements deleteCount, and optionally also appending items.

License

MIT