MCPcopy Create free account
hub / github.com/cmliu/CF-Workers-CheckProxyIP / uniqueStrings

Function uniqueStrings

_worker.js:148–155  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

146}
147
148function uniqueStrings(values) {
149 const seenValues = new Set();
150 return values.filter(value => {
151 if (seenValues.has(value)) return false;
152 seenValues.add(value);
153 return true;
154 });
155}
156
157async function handleResolve(input) {
158 let { host, port } = parseTarget(input);

Callers 2

getResolveBatchInputsFunction · 0.85
handleResolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected