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

Function repeatItems

source/features/pr-commit-lines-changed.tsx:39–41  ·  view source on GitHub ↗
(count: number, Item: () => React.JSX.Element)

Source from the content-addressed store, hash-verified

37});
38
39function repeatItems(count: number, Item: () => React.JSX.Element): React.JSX.Element[] {
40 return Array.from({length: count}, () => <Item style={{borderRadius: '2px'}} />);
41}
42
43async function add(commitHash: HTMLElement): Promise<void> {
44 const commitSha = location.pathname.split('/').pop()!;

Callers 1

addFunction · 0.85

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected