MCPcopy
hub / github.com/sindresorhus/query-string / pick

Function pick

base.js:582–596  ·  view source on GitHub ↗
(input, filter, options)

Source from the content-addressed store, hash-verified

580}
581
582export 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
598export function exclude(input, filter, options) {
599 if (Array.isArray(filter)) {

Callers 1

excludeFunction · 0.85

Calls 2

parseUrlFunction · 0.85
stringifyUrlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…