Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function siftMatcher (originalQuery) {
const keysToOmit = Object.keys(originalQuery).filter(key => key.charCodeAt(0) === 36);
const query = _.omit(originalQuery, ...keysToOmit);
return sift(query);
}