UNPKG

hd-utils

Version:

A handy utils for modern JS developers

8 lines (7 loc) 332 B
/** * @description It takes a URL and returns the query string * @param {string} input - The URL to extract the query from. * @returns The query string from the URL. * @example extractQueryFromUrl("https://www.youtube.com/watch?v=ABCD#anchor") => "v=ABCD" */ export default function extractQueryFromUrl(input: string): string;