Fragment 
The Fragment interface represents a lightweight document object that has no parent. It is designed for efficient manipulation of document structures without affecting the main DOM.
Example:
js
import { Fragment } from 'lakelib';
const fragment = new Fragment();
fragment.append('<div>foo</div><div>bar</div>');Constructor 
Creates a new Fragment instance.
- Parameters: - fragmentOptional- A native DocumentFragment object. 
Instance methods 
get() 
Returns a native DocumentFragment object from the fragment.
- Parameters: - None. 
- Return value: - A native DocumentFragment object. 
Example:
js
const fragment = new Fragment();
const nativeFragment = fragment.get();find() 
Finds and returns descendants of the fragment that match the specified CSS selector.
- Parameters: - selector- A - stringthat specifies CSS selector.
- Return value: - A Nodes object containing the matching elements. 
Example:
js
const nativeFragment = document.createDocumentFragment();
nativeFragment.appendChild(query('<div>foo</div>').get(0));
nativeFragment.appendChild(query('<div>bar</div>').get(0));
const fragment = new Fragment(nativeFragment);
// Outputs "foo".
console.log(fragment.find('div').get(0).innerText);append() 
Inserts the specified content just inside the fragment, after its last child.
Example:
js
const fragment = new Fragment();
fragment.append('<div>foo</div><div>bar</div>');