We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keepQuery(input: string, keep string | string[]) Removes all queries not specified in parameter keep
keepQuery(input: string, keep string | string[])
keep
Example: keepQuery('/path?foo=a&bar=b', 'bar') // "/path?bar=b"
keepQuery('/path?foo=a&bar=b', 'bar') // "/path?bar=b"
and
withoutQuery(input: string, without string | string[]) Keeps all queries other than specified in parameter without
withoutQuery(input: string, without string | string[])
without
Example: withoutQuery('/path?foo=a&bar=c', 'bar') // "/path?foo=a"
withoutQuery('/path?foo=a&bar=c', 'bar') // "/path?foo=a"
The text was updated successfully, but these errors were encountered:
Hi thanks for idea. I think we can aggregate both to something like filterQuery(input, fn) wdyt?
filterQuery(input, fn)
But also can you please explain when you think this feature would benefit a share usecase for projects?
Sorry, something went wrong.
No branches or pull requests
Describe the feature
keepQuery(input: string, keep string | string[])
Removes all queries not specified in parameter
keep
Example:
keepQuery('/path?foo=a&bar=b', 'bar') // "/path?bar=b"
and
withoutQuery(input: string, without string | string[])
Keeps all queries other than specified in parameter
without
Example:
withoutQuery('/path?foo=a&bar=c', 'bar') // "/path?foo=a"
Additional information
The text was updated successfully, but these errors were encountered: