{"version":3,"file":"has-query-arg.cjs","names":["getQueryArg"],"sources":["../src/has-query-arg.ts"],"sourcesContent":["import { getQueryArg } from './get-query-arg';\n\n/**\n * Determines whether the URL contains a given query arg.\n *\n * @param url URL.\n * @param arg Query arg name.\n *\n * @example\n * ```js\n * const hasBar = hasQueryArg( 'https://wordpress.org?foo=bar&bar=baz', 'bar' ); // true\n * ```\n *\n * @return Whether or not the URL contains the query arg.\n */\nexport function hasQueryArg( url: string, arg: string ): boolean {\n\treturn getQueryArg( url, arg ) !== undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAeA,SAAgB,YAAa,KAAa,KAAuB;CAChE,QAAA,GAAOA,mBAAAA,YAAAA,CAAa,KAAK,GAAI,MAAM,KAAA;AACpC"}