MCPcopy
hub / github.com/refined-github/refined-github / wrap

Function wrap

source/helpers/dom-utils.ts:42–45  ·  view source on GitHub ↗
(target: Element | ChildNode, wrapper: Element)

Source from the content-addressed store, hash-verified

40};
41
42export const wrap = (target: Element | ChildNode, wrapper: Element): void => {
43 target.before(wrapper);
44 wrapper.append(target);
45};
46
47export const wrapAll = <Wrapper extends Element>(wrapper: Wrapper, ...targets: Array<Element | ChildNode>): Wrapper => {
48 const [first, ...rest] = targets;

Callers 11

initFunction · 0.85
alterLinkFunction · 0.85
linkifyFeatureFunction · 0.85
updateStatusBadgesFunction · 0.85
linkifyFunction · 0.85
removeBaseRepoFunction · 0.85
addButtonPrFunction · 0.85
addButtonIssueFunction · 0.85
addLocationFunction · 0.85
linkifyIconFunction · 0.85
addButtonFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected