MCPcopy Create free account
hub / github.com/sindresorhus/fkill-cli / preferNotMatching

Function preferNotMatching

interactive.js:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45};
46
47const preferNotMatching = matches => (a, b) => {
48 const aMatches = matches(a);
49 return matches(b) === aMatches ? 0 : (aMatches ? 1 : -1);
50};
51
52const deprioritizedProcesses = new Set(['iTerm', 'iTerm2', 'fkill']);
53const isDeprioritizedProcess = process_ => deprioritizedProcesses.has(process_.name);

Callers 1

interactive.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected