hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

fragment-new

Creates a new fragment by cloning the provided fragment, or returns an empty fragment if none is provided.
Parameter
Type
Description
fragment
fragment
The fragment to clone. If nil, an empty fragment is returned.
return
fragment
A cloned copy of the fragment, or an empty fragment.