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

Function exclude

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

Source from the content-addressed store, hash-verified

596}
597
598export function exclude(input, filter, options) {
599 if (Array.isArray(filter)) {
600 const filterSet = new Set(filter);
601 return pick(input, key => !filterSet.has(key), options);
602 }
603
604 return pick(input, (key, value) => !filter(key, value), options);
605}

Callers

nothing calls this directly

Calls 1

pickFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…