MCPcopy Index your code
hub / github.com/refined-github/refined-github / wrapAll

Function wrapAll

source/helpers/dom-utils.ts:47–52  ·  view source on GitHub ↗
(wrapper: Wrapper, ...targets: Array<Element | ChildNode>)

Source from the content-addressed store, hash-verified

45};
46
47export const wrapAll = <Wrapper extends Element>(wrapper: Wrapper, ...targets: Array<Element | ChildNode>): Wrapper => {
48 const [first, ...rest] = targets;
49 first.before(wrapper);
50 wrapper.append(first, ...rest);
51 return wrapper;
52};
53
54export const isEditable = (node: unknown): boolean =>
55 node instanceof HTMLTextAreaElement

Callers 5

groupButtonsFunction · 0.85
linkifyFunction · 0.85
addLinkFunction · 0.85
addToHomeFunction · 0.85
linkifyFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected