MCPcopy Index your code
hub / github.com/actions/setup-node / unique

Function unique

src/util.ts:113–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113export const unique = () => {
114 const encountered = new Set();
115 return (value: unknown): boolean => {
116 if (encountered.has(value)) return false;
117 encountered.add(value);
118 return true;
119 };
120};

Calls

no outgoing calls

Tested by

no test coverage detected