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

Function is

source/helpers/css-selectors.ts:3–6  ·  view source on GitHub ↗
(firstSelector: readonly string[] | string, ...otherSelectors: readonly string[])

Source from the content-addressed store, hash-verified

1export function is(selectors: readonly string[]): string;
2export function is(firstSelector: string, ...otherSelectors: readonly string[]): string;
3export function is(firstSelector: readonly string[] | string, ...otherSelectors: readonly string[]): string {
4 const selectors = Array.isArray(firstSelector) ? firstSelector : [firstSelector, ...otherSelectors];
5 return `:is(${selectors.join(', ')})`;
6}
7
8export function not(selectors: readonly string[]): string;
9export function not(firstSelector: string, ...otherSelectors: readonly string[]): string;

Callers 15

index.tsFile · 0.85
selectors.tsFile · 0.85
maybeAddIconFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initOnceFunction · 0.85
initFunction · 0.85
quick-mention.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected