MCPcopy Create free account
hub / github.com/sindresorhus/query-string / exclude

Function exclude

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

Source from the content-addressed store, hash-verified

795}
796
797export function exclude(input, filter, options) {
798 if (Array.isArray(filter)) {
799 const filterSet = new Set(filter);
800 return pick(input, key => !filterSet.has(key), options);
801 }
802
803 return pick(input, (key, value) => !filter(key, value), options);
804}

Callers

nothing calls this directly

Calls 1

pickFunction · 0.85

Tested by

no test coverage detected