UNPKG

@wordpress/url

Version:
15 lines 414 B
/** * Determines whether the URL contains a given query arg. * * @param url URL. * @param arg Query arg name. * * @example * ```js * const hasBar = hasQueryArg( 'https://wordpress.org?foo=bar&bar=baz', 'bar' ); // true * ``` * * @return Whether or not the URL contains the query arg. */ export declare function hasQueryArg(url: string, arg: string): boolean; //# sourceMappingURL=has-query-arg.d.ts.map