replace

  • function
 

Replaces oldElements with newFrag

elements.replace(oldElements, newFrag)

Replaces oldElements with newFrag

Parameters

  1. oldElements {Array<HTMLElement>}

  2. newFrag {DocumentFragment}