MCPcopy
hub / github.com/livebud/bud / uniqInStr

Function uniqInStr

package/svelte/compiler.js:21936–21942  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

21934 }
21935 }
21936 function uniqInStr(str) {
21937 let uniq = String(Math.random()).slice(2);
21938 while (str.indexOf(uniq) > -1) {
21939 uniq += uniq;
21940 }
21941 return uniq;
21942 }
21943 function stripPathFilename(path) {
21944 path = normalizePath(path);
21945 const index = path.lastIndexOf("/");

Callers 1

normalizePathFunction · 0.85

Calls 1

StringStruct · 0.50

Tested by

no test coverage detected