MCPcopy
hub / github.com/philc/vimium / removeDuplicateChars

Function removeDuplicateChars

pages/options.js:254–264  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

252}
253
254function removeDuplicateChars(str) {
255 const seen = new Set();
256 let result = "";
257 for (let char of str) {
258 if (!seen.has(char)) {
259 result += char;
260 seen.add(char);
261 }
262 }
263 return result;
264}
265
266export async function saveOptions() {
267 const hasErrors = showValidationErrors();

Callers 1

getValidationErrorsFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected