hyperhtml-wire
The persistent fragment like class used in hyperHTML.
This is particularly useful with domdiff so it's been extracted from hyperHTML itself..
If you're looking for a smaller, modern, faster, alternative, check µwire out 😉
; const wire = documentbody; wirefirstChild; // first body elementwirelastChild; // last body elementwirechildNodes; // an array of initial nodeswireownerDocument; // the document of the first child wire; // remove all but first node (domdiff friendly)wire; // remove all nodes wire; // force nodes to be re-appended to a fragmentwire;// returns fragment with nodes only if not appended