MCPcopy Create free account
hub / github.com/sindresorhus/query-string / removeHash

Function removeHash

base.js:433–440  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

431}
432
433function removeHash(input) {
434 const hashStart = input.indexOf('#');
435 if (hashStart !== -1) {
436 input = input.slice(0, hashStart);
437 }
438
439 return input;
440}
441
442function getHash(url) {
443 let hash = '';

Callers 2

extractFunction · 0.85
stringifyUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected