Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function convertFilter(filter)
{
const obj = convertObject(["disabled", "text"], filter);
obj.slow = filter instanceof RegExpFilter && isSlowFilter(filter);
return obj;
}
function convertFilter(filter)
{
const obj = convertObject(["disabled", "text"], filter);
obj.slow = filter instanceof RegExpFilter && isSlowFilter(filter);
return obj;
}