MCPcopy
hub / github.com/sindresorhus/query-string / removeHash

Function removeHash

base.js:290–297  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

288}
289
290function removeHash(input) {
291 const hashStart = input.indexOf('#');
292 if (hashStart !== -1) {
293 input = input.slice(0, hashStart);
294 }
295
296 return input;
297}
298
299function getHash(url) {
300 let hash = '';

Callers 2

extractFunction · 0.85
stringifyUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…