MCPcopy
hub / github.com/cita-777/metapi / toArraySet

Function toArraySet

src/shared/tokenRoutePatterns.js:177–183  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

175}
176
177function toArraySet(values) {
178 const unique = [];
179 for (const value of values) {
180 if (!unique.includes(value)) unique.push(value);
181 }
182 return unique;
183}
184
185function parseCharClassChar(body, state) {
186 const ch = body[state.index];

Callers 1

matchNodeFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected