Closed
Description
To eliminate unneeded params, preserve only needed
queryString.strip('http://example.com/?a=1&b=2', [ 'a' ] )
// result : http://example.com/?a=1
It would be helpful when page has many redudant params (like statistic params) and want to get a cleaner one
Better function names from @Uzlopak:
queryString.pick('http://example.com/?a=1&b=2', [ 'a' ] )
// result : http://example.com/?a=1
queryString.exclude('http://example.com/?a=1&b=2', [ 'a' ] )
// result : http://example.com/?b=2