UNPKG

@wordpress/url

Version:
15 lines 462 B
/** * Removes arguments from the query string of the url * * @param {string} url URL. * @param {...string} args Query Args. * * @example * ```js * const newUrl = removeQueryArgs( 'https://wordpress.org?foo=bar&bar=baz&baz=foobar', 'foo', 'bar' ); // https://wordpress.org?baz=foobar * ``` * * @return {string} Updated URL. */ export function removeQueryArgs(url: string, ...args: string[]): string; //# sourceMappingURL=remove-query-args.d.ts.map