replace
function
nodeLists.replace(oldElements, newFrag)
Replaces oldElements with newFrag.
Parameters
- oldElements
{Array<Node>}:the list elements to remove
- newFrag
{DocumentFragment}:the fragment to replace the old elements