(input, filter, options)
| 580 | } |
| 581 | |
| 582 | export function pick(input, filter, options) { |
| 583 | options = { |
| 584 | parseFragmentIdentifier: true, |
| 585 | [encodeFragmentIdentifier]: false, |
| 586 | ...options, |
| 587 | }; |
| 588 | |
| 589 | const {url, query, fragmentIdentifier} = parseUrl(input, options); |
| 590 | |
| 591 | return stringifyUrl({ |
| 592 | url, |
| 593 | query: includeKeys(query, filter), |
| 594 | fragmentIdentifier, |
| 595 | }, options); |
| 596 | } |
| 597 | |
| 598 | export function exclude(input, filter, options) { |
| 599 | if (Array.isArray(filter)) { |
no test coverage detected
searching dependent graphs…