hd-utils
Version:
A handy utils for modern JS developers
7 lines (6 loc) • 316 B
TypeScript
/**
* @description It takes a string, finds the first occurrence of the hash character, and returns the string without
* the hash character and everything after it.
* @example removeHashFromUrl("www.example.com/a#link") => "www.example.com/a"
*/
export default function removeHashFromUrl(input: string): string;